PHP Classes

call-time pass-by-reference

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  call-time pass-by-reference  >  (Un) Subscribe thread alerts  
Subject:call-time pass-by-reference
Summary:warning,"call-time pass-by-reference"
Messages:2
Author:Neal Breeding
Date:2008-04-24 14:40:08
Update:2008-04-24 20:44:59
 

  1. call-time pass-by-reference   Reply   Report abuse  
Picture of Neal Breeding Neal Breeding - 2008-04-24 14:40:09
While not really a problem (because the script still works), this is an annoyance. I'm getting the following warning when using the pop3 class.

I cannot modify my php.ini (shared hosting), is there any other way to disable this warning?

Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). 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. in pop3.php on line 179

I read somewhere else that (for this warning) I can remove the "&" before the variables that are associated with the line and the script should work fine.

So I did, and the script seems to work fine. Any comments?

  2. Re: call-time pass-by-reference   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-04-24 20:44:59 - In reply to message 1 from Neal Breeding
Actually this was fixed last January but since it was a small change I ended up forgetting to upload the fixed version. I just uploaded it now. Thank you for reporting.