diff options
author | Nikita Popov <nikic@php.net> | 2016-03-23 18:57:59 +0100 |
---|---|---|
committer | Nikita Popov <nikic@php.net> | 2016-05-24 18:34:17 +0200 |
commit | 674297c7e41013c2c34d770051714518d0586271 (patch) | |
tree | 6a2cb224a774f89a3775d218d1ab7b7e756b815b /Zend/tests/bug52484_3.phpt | |
parent | a19eb8e34abc0b41e821cbf67930bf64fcb9e65d (diff) | |
download | php-git-674297c7e41013c2c34d770051714518d0586271.tar.gz |
Allow empty property names
Conflicts:
Zend/zend_compile.c
Diffstat (limited to 'Zend/tests/bug52484_3.phpt')
-rw-r--r-- | Zend/tests/bug52484_3.phpt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zend/tests/bug52484_3.phpt b/Zend/tests/bug52484_3.phpt index af32bc9be7..408dd453fd 100644 --- a/Zend/tests/bug52484_3.phpt +++ b/Zend/tests/bug52484_3.phpt @@ -10,14 +10,14 @@ class A { } $a = new A(); -$prop = null; +$prop = "\0"; var_dump($a->$prop); ?> --EXPECTF-- -Fatal error: Uncaught Error: Cannot access empty property in %s:%d +Fatal error: Uncaught Error: Cannot access property started with '\0' in %s:%d Stack trace: -#0 %s(%d): A->__get('') +#0 %s(%d): A->__get('\x00') #1 {main} thrown in %s on line %d |