037.phpt 299 B

12345678910111213141516171819
  1. --TEST--
  2. Trying to access inexistent static property of Closure
  3. --FILE--
  4. <?php
  5. namespace closure;
  6. class closure { static $x = 1;}
  7. $x = __NAMESPACE__;
  8. var_dump(closure::$x);
  9. var_dump($x::$x);
  10. ?>
  11. --EXPECTF--
  12. int(1)
  13. Fatal error: Access to undeclared static property: Closure::$x in %s on line %d