Reply to Re: [PHP] "Only variable references should be returned by reference"

Your name:

Reply:


Posted by Jason Wong on 07/20/05 05:10

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

[Back to original 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

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