]> granicus.if.org Git - php/commitdiff
PHP has changed (undefined) behaviour from 5.3.2 to 5.3.3: ->{} = , which seems...
authorUlf Wendel <uw@php.net>
Tue, 31 Aug 2010 14:43:02 +0000 (14:43 +0000)
committerUlf Wendel <uw@php.net>
Tue, 31 Aug 2010 14:43:02 +0000 (14:43 +0000)
ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt

index 067f9ca7046efd94f5e0a206bf19c0d2f1c02a82..99bade2a689a7e68a95e01bfb4bcda609f058893 100644 (file)
@@ -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!