Re: "Only variable references should be returned by reference"

From: Date: Wed, 20 Jul 2005 02:23:04 +0000
Subject: Re: "Only variable references should be returned by reference"
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-219019@lists.php.net to get a copy of this message
On Wed, 20 Jul 2005, Jason Wong wrote:
On Wednesday 20 July 2005 07:32, Marc G. Fournier wrote:
Which is? If its:
Yep.
; at function call time. This method is deprecated and is likely to be ; unsupported in future versions of PHP/Zend. The encouraged method of ; specifying which arguments should be passed by reference is in the function ; declaration. You're encouraged to try and turn this option Off and make ; sure your scripts work properly with it in order to ensure they will work ; with future versions of the language (you will receive a warning each time ; you use this feature, and the argument will be passed by value instead of by ; reference). allow_call_time_pass_reference = On
The pass by reference thing works regardless of the above setting. Enabling the setting disables the warnings and vice-versa.
It already is ...
Are you sure that: 1) you're looking at the correct php.ini 2) the setting is not being changed elsewhere
Yup ... actually checked the output of phpinfo() too, just to double check that :(
If the warning annoys you just tone down the error reporting level.
Ah, hadn't though tof that ... thanks ... ----
Marc G. Fournier           Hub.Org Networking Services (http://www.hub.org)
Email: scrappy@hub.org           Yahoo!: yscrappy              ICQ: 7615664


« previous php.general (#219019) next »