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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

If the warning annoys you just tone down the error reporting level.

> Is there another one I should be looking at? :(

Not that I'm aware of.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux