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 >> /var/www/html/sub/images/sym/root/php-7.1.11/Zend/tests/ |
files >> /var/www/html/sub/images/sym/root/php-7.1.11/Zend/tests/bug44141.phpt |
--TEST-- Bug #44141 (private parent constructor callable through static function) --FILE-- <?php class X { public $x; private function __construct($x) { $this->x = $x; } } class Y extends X { static public function cheat($x) { return new Y($x); } } $y = Y::cheat(5); echo $y->x, PHP_EOL; --EXPECTF-- Fatal error: Uncaught Error: Call to private X::__construct() from context 'Y' in %sbug44141.php:15 Stack trace: #0 %s(%d): Y::cheat(5) #1 {main} thrown in %sbug44141.php on line 15y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`