Browse Source

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.

experimental/with_scalar_types
Ulf Wendel 16 years ago
parent
commit
d3670280f0
  1. 5
      ext/pdo_mysql/tests/pdo_mysql_stmt_fetchobject.phpt

5
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!
done!
Loading…
Cancel
Save