uw Tue, 31 Aug 2010 14:43:02 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=302923
Log: 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. Changed paths: U php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt U php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt Modified: php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt =================================================================== --- php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt 2010-08-31 14:40:52 UTC (rev 302922) +++ php/php-src/branches/PHP_5_3/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt 2010-08-31 14:43:02 UTC (rev 302923) @@ -39,7 +39,8 @@ $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 @@ [%u|b%"null"]=> NULL } -done! \ No newline at end of file +done! Modified: php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt =================================================================== --- php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt 2010-08-31 14:40:52 UTC (rev 302922) +++ php/php-src/trunk/ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt 2010-08-31 14:43:02 UTC (rev 302923) @@ -39,7 +39,8 @@ $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 @@ [%u|b%"null"]=> NULL } -done! \ No newline at end of file +done!
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php