blob: 95d2fc1233d4db3fed33fa212c289c08af7dcabe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--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
|