Re: Weird behaviour with references to objects...
| From: | Tim Molendijk | Date: | Sat, 09 Nov 2002 21:05:54 +0000 |
| Subject: | Re: Weird behaviour with references to objects... | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123621@lists.php.net to get a copy of this message | ||
"Ernest E Vogelsinger" <ernest@vogelsinger.at> wrote in message
news:5.1.1.6.2.20021108175627.00b44880@mail.vogelsinger.at...
>
> This is clearly said in your PHP.ini file:
>
> ; Whether to enable the ability to force arguments to be passed by
reference
> ; 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
>
> ...god has spoken :)
yup that's one hell of an argument :)
>
> I'd rather have the abilty to pass A reference like "foo(&$a)" and have
the
> opportunity to choose at runtime if I want to use a reference here or not,
> but it's how they say...
>
>
> --
> >O Ernest E. Vogelsinger
> (\) ICQ #13394035
> ^ http://www.vogelsinger.at/
>