php-src/Zend/tests/temporary_cleaning_012.phpt
2020-07-10 21:05:28 +02:00

21 lines
324 B
PHP

--TEST--
Live range of ZEND_NEW must be assigned to correct variable
--FILE--
<?php
class Foo {
public static function test() {
self::$property = new self;
}
}
try {
Foo::test();
} catch (Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Access to undeclared static property Foo::$property