Re: ->{} = syntax ?
| From: | Ferenc Kovacs | Date: | Fri, 10 Sep 2010 11:15:37 +0000 |
| Subject: | Re: ->{} = syntax ? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49594@lists.php.net to get a copy of this message | ||
2010/9/10 Frederic Hardy <frederic.hardy@mageekbox.net>
> Hello !
>
>> I have seen this comment about ->{} = syntax in log of revision 302923
>>
>>> of trunk :
>>> "PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = ,
>>> which seems to have been never an officially supported syntax and have
>>> never been a valid property name, is no longer allowed and PHP bails.".
>>> Can i have more information about that ?
>>>
>>>
>> The issue there was with a property with NULL as "name". A PDO test
>> stumbled over this issue.
>>
>>
> So, the syntax ->{} is now not supported by PHP ?
>
>
defining properties with null name $this->{} = 'foo'; is not supported, but
it was allowed by a mistake, now it got fixed.
but any not null variable substitution can and will work.
Tyrael