mirror of
https://github.com/php/php-src.git
synced 2024-12-15 12:54:57 +08:00
d30cd7d7e7
Closes GH-5590
21 lines
324 B
PHP
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
|