You are here: Re: [PHP] "Only variable references should be returned by reference" « PHP « IT news, forums, messages
Re: [PHP] "Only variable references should be returned by reference"

Posted by "Marc G. Fournier" on 07/20/05 05:23

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация