Opened 8 years ago
Closed 8 years ago
#1299403 closed Bugs (Fixed)
Warning: Call-time pass-by-reference has been deprecated
| Reported by: | mystcb | Owned by: | roundcube |
|---|---|---|---|
| Priority: | 5 | Milestone: | |
| Component: | IMAP connection | Version: | 0.1-alpha |
| Severity: | Keywords: | ||
| Cc: |
Description
In the file IMAP.INC on line 843, there is a call to a function which is written as follows: $num = iil_C_CountMessages(&$conn, $mailbox); This produces the error: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of iil_c_countmessages(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/www/roundcube/program/lib/imap.inc on line 843 -- If you remove the & from the call to the function this message goes away, so you replace the above line with: $num = iil_C_CountMessages($conn, $mailbox); This stops the messages from coming up, and does not break the code. This will make the code compatible with PHP5 Hope this helps Colin
Change History (1)
comment:1 Changed 8 years ago by roundcube
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
