php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay
files >> /opt/php-7.0.1/Zend/tests/ |
files >> //opt/php-7.0.1/Zend/tests/bug65372.phpt |
--TEST-- Bug #65372 (Segfault in gc_zval_possible_root when return reference fails) --FILE-- <?php class ParentClass { private static $_OBJECTS; public static function Get() { self::$_OBJECTS[1] = new ChildClass(); return self::$_OBJECTS[1]; } } class ChildClass extends ParentClass { public $Manager; function __construct() { $this->Manager = $this; } public static function &GetCurrent() { return ChildClass::Get(); } public static function &Get() { return parent::Get(); } } $staff = ChildClass::GetCurrent(); ?> --EXPECTF-- Notice: Only variable references should be returned by reference in %sbug65372.php on line 30y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`