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/bug68652.phpt |
--TEST-- Bug #68652 (segmentation fault in destructor) --FILE-- <?php class Foo { private static $instance; public static function getInstance() { if (isset(self::$instance)) { return self::$instance; } return self::$instance = new self(); } public function __destruct() { Bar::getInstance(); } } class Bar { private static $instance; public static function getInstance() { if (isset(self::$instance)) { return self::$instance; } return self::$instance = new self(); } public function __destruct() { Foo::getInstance(); } } $foo = new Foo(); ?> --EXPECTF-- Fatal error: Uncaught Error: Access to undeclared static property: Bar::$instance in %sbug68652.php:%d Stack trace: #0 %s(%d): Bar::getInstance() #1 [internal function]: Foo->__destruct() #2 {main} thrown in %sbug68652.php on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare