temporary_cleaning_012.phpt 324 B

1234567891011121314151617181920
  1. --TEST--
  2. Live range of ZEND_NEW must be assigned to correct variable
  3. --FILE--
  4. <?php
  5. class Foo {
  6. public static function test() {
  7. self::$property = new self;
  8. }
  9. }
  10. try {
  11. Foo::test();
  12. } catch (Error $e) {
  13. echo $e->getMessage(), "\n";
  14. }
  15. ?>
  16. --EXPECT--
  17. Access to undeclared static property Foo::$property