xref: /PHP-5.5/Zend/tests/bug52484_3.phpt (revision c0e6f37c)
1--TEST--
2Bug #52484.3 (__set() ignores setting properties with empty names)
3--FILE--
4<?php
5
6class A {
7	function __get($prop) {
8		var_dump($this->$prop);
9	}
10}
11
12$a = new A();
13$prop = null;
14
15var_dump($a->$prop);
16
17?>
18--EXPECTF--
19Fatal error: Cannot access empty property in %s on line %d
20