From: Ulf Wendel Date: Tue, 31 Aug 2010 14:43:02 +0000 (+0000) Subject: PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems... X-Git-Tag: php-5.3.4RC1~287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d27642fece59b3db87a16226f6231bc0d6aa30e8;p=php 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. --- diff --git a/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt b/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt index 067f9ca704..99bade2a68 100644 --- a/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt +++ b/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt @@ -39,7 +39,8 @@ try { $this->not_a_magic_one(); printf("myclass::__set(%s, -%s-) %d\n", $prop, var_export($value, true), $this->set_calls, self::$static_set_calls); - $this->{$prop} = $value; + if ("" != $prop) + $this->{$prop} = $value; } // NOTE: PDO can call regular methods prior to calling __construct() @@ -96,4 +97,4 @@ object(myclass)#%d (4) { [%u|b%"null"]=> NULL } -done! \ No newline at end of file +done!