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