summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql/tests
diff options
context:
space:
mode:
authorUlf Wendel <uw@php.net>2010-08-31 14:43:02 +0000
committerUlf Wendel <uw@php.net>2010-08-31 14:43:02 +0000
commitd27642fece59b3db87a16226f6231bc0d6aa30e8 (patch)
treef3297747aa124d7949613e95c7ce327256fefb97 /ext/pdo_mysql/tests
parentc37b0c690a2358f58adf16cb99ec6de19b40e8d2 (diff)
downloadphp-git-d27642fece59b3db87a16226f6231bc0d6aa30e8.tar.gz
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.
Diffstat (limited to 'ext/pdo_mysql/tests')
-rw-r--r--ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt5
1 files changed, 3 insertions, 2 deletions
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!