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/bug61767.phpt |
--TEST-- Bug #61767 (Shutdown functions not called in certain error situation) --FILE-- <?php set_error_handler(function($code, $msg, $file = null, $line = null) { echo "Error handler called ($msg)\n"; throw new \ErrorException($msg, $code, 0, $file, $line); }); register_shutdown_function(function(){ echo "Shutting down\n"; print_r(error_get_last()); }); //$undefined = null; // defined variable does not cause problems $undefined->foo(); --EXPECTF-- Error handler called (Undefined variable: undefined) Fatal error: Uncaught ErrorException: Undefined variable: undefined in %sbug61767.php:%d Stack trace: #0 %sbug61767.php(%d): {closure}(%s, 'Undefined varia...', '%s', %d, Array) #1 {main} thrown in %sbug61767.php on line %d Shutting down Array ( [type] => 1 [message] => %a [file] => %sbug61767.php [line] => %d )
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare