diff options
Diffstat (limited to 'Zend/tests/bug29015.phpt')
| -rw-r--r-- | Zend/tests/bug29015.phpt | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Zend/tests/bug29015.phpt b/Zend/tests/bug29015.phpt index a36ed923f3..d4231d10b1 100644 --- a/Zend/tests/bug29015.phpt +++ b/Zend/tests/bug29015.phpt @@ -6,9 +6,16 @@ $a = new stdClass(); $x = ""; $a->$x = "string('')"; var_dump($a); +$a->{"\0"} = 42; +var_dump($a); ?> --EXPECTF-- -Fatal error: Uncaught Error: Cannot access empty property in %sbug29015.php:4 +object(stdClass)#1 (1) { + [""]=> + string(10) "string('')" +} + +Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d Stack trace: #0 {main} - thrown in %sbug29015.php on line 4 + thrown in %s on line %d |
