12345678910111213141516171819 |
- --TEST--
- Bug #52484.3 (__set() ignores setting properties with empty names)
- --FILE--
- <?php
- class A {
- function __get($prop) {
- var_dump($this->$prop);
- }
- }
- $a = new A();
- $prop = null;
- var_dump($a->$prop);
- ?>
- --EXPECTF--
- Fatal error: Cannot access empty property in %s on line %d
|