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 : /proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/reflection/tests/ |
Current File : //proc/self/root/usr/local/src/php72/php-7.2.12/php-7.2.12/ext/reflection/tests/bug64007.phpt |
--TEST-- Bug #64007 (There is an ability to create instance of Generator by hand) --FILE-- <?php $reflection = new ReflectionClass('Generator'); try { $generator = $reflection->newInstanceWithoutConstructor(); var_dump($generator); } catch (Exception $e) { var_dump($e->getMessage()); } $generator = $reflection->newInstance(); var_dump($generator); ?> --EXPECTF-- string(%d) "Class Generator is an internal class marked as final that cannot be instantiated without invoking its constructor" Fatal error: Uncaught Error: The "Generator" class is reserved for internal use and cannot be manually instantiated in %sbug64007.php:%d Stack trace: #0 %s(%d): ReflectionClass->newInstance() #1 {main} thrown in %sbug64007.php on line %d
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare