![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: Trying to access inexistent static property of Closure 3: --FILE-- 4: <?php 5: 6: namespace closure; 7: 8: class closure { static $x = 1;} 9: 10: $x = __NAMESPACE__; 11: var_dump(closure::$x); 12: 13: var_dump($x::$x); 14: 15: ?> 16: --EXPECTF-- 17: int(1) 18: 19: Fatal error: Access to undeclared static property: Closure::$x in %s on line %d