Re: allow_call_time_pass_reference
| From: | Hannes Magnusson | Date: | Thu, 08 May 2008 20:58:44 +0000 |
| Subject: | Re: allow_call_time_pass_reference | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-37551@lists.php.net to get a copy of this message | ||
On Thu, May 8, 2008 at 10:08 PM, Todd Ruth <truth@proposaltech.com> wrote:
> On Thu, 2008-05-08 at 20:28 +0100, Steph Fox wrote:
>> ...
>> Does anyone have a good reason for keeping it switched on by default in PHP
>> 5.3? Like, would switching it off by default break a lot of existing code,
>> given that most users are a bit beyond PHP 3 now?
>
> Well, I can at least comment on how it is used in the code that
> I inherited. First it must be noted that the following throws
> a fatal error:
>
> function f(&$x=5) { ....
No it doesn't.
That line does however not work exactly as you would expect..
-Hannes