FAQ
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 ?
What is the problem ?

Best regards,
Fred.

--
========================================================================
Frédéric Hardy : Architecte d'application/Admin. système/Ergonome
Status : En recherche d'emploi
CV : http://blog.mageekbox.net/public/cv.frederic.hardy.pdf
Blog : http://blog.mageekbox.net
Twitter : http://twitter.com/mageekguy
========================================================================

Search Discussions

  • Johannes Schlüter at Sep 10, 2010 at 9:18 am

    On Fri, 2010-09-10 at 09:05 +0200, Frederic Hardy wrote:
    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 ?
    What is the problem ?
    The issue there was with a property with NULL as "name". A PDO test
    stumbled over this issue.

    johannes
  • Frederic Hardy at Sep 10, 2010 at 10:48 am
    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 ?

    Best regards,
    Fred.

    --
    ========================================================================
    Frédéric Hardy : Architecte d'application/Admin. système/Ergonome
    Status : En recherche d'emploi
    CV : http://blog.mageekbox.net/public/cv.frederic.hardy.pdf
    Blog : http://blog.mageekbox.net
    Twitter : http://twitter.com/mageekguy
    ========================================================================
  • Ferenc Kovacs at Sep 10, 2010 at 11:15 am
    2010/9/10 Frederic Hardy <[email protected]>
    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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedSep 10, '10 at 7:05a
activeSep 10, '10 at 11:15a
posts4
users3
websitephp.net

People

Translate

site design / logo © 2023 Grokbase