Edit report at https://bugs.php.net/bug.php?id=61767&edit=1
ID: 61767 Patch added by: larue...@php.net Reported by: shiranai7 at hotmail dot com Summary: Shutdown functions not called in certain error situation Status: Analyzed Type: Bug Package: Scripting Engine problem Operating System: Win7 PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: The following patch has been added/updated: Patch Name: another_fix_for_bug61767.patch Revision: 1334915414 URL: https://bugs.php.net/patch-display.php?bug=61767&patch=another_fix_for_bug61767.patch&revision=1334915414 Previous Comments: ------------------------------------------------------------------------ [2012-04-20 06:02:25] larue...@php.net I attached a fix for this, maybe need dmitry to review it. ------------------------------------------------------------------------ [2012-04-20 06:01:10] larue...@php.net The following patch has been added/updated: Patch Name: bug61767.patch Revision: 1334901670 URL: https://bugs.php.net/patch-display.php?bug=61767&patch=bug61767.patch&revision=1334901670 ------------------------------------------------------------------------ [2012-04-20 05:52:05] larue...@php.net a E_NOTICE "undefined variable" has been triggered before the FATAL_ERROR. hmm, the same thing as #60909 ------------------------------------------------------------------------ [2012-04-19 22:56:56] ni...@php.net This seems related: https://bugs.php.net/bug.php?id=60909 ------------------------------------------------------------------------ [2012-04-19 09:07:06] shiranai7 at hotmail dot com Allow me to re-specify the expected result: ---------- Error handler called Fatal error: Uncaught exception 'ErrorException' with message 'Undefined variable: undefined' in C:\Dokumenty\localhost\base\test_case1.php:14 Stack trace: #0 _example_(14): {closure}(8, 'Undefined varia...', 'C:\Dokumenty\lo...', 14, Array) #1 {main} thrown in C:\Dokumenty\localhost\base\test_case1.php on line 14 Shutting down Array ( [type] => 1 [message] => Uncaught exception 'ErrorException' with message 'Undefined variable: undefined' in _example_:14 Stack trace: ... [file] => _example_ [line] => 14 ) ------ This is because the error_handler gets actually called for the E_NOTICE - so an exception should be thrown (and later uncaught in the example). But the exception gets *eaten* as I described. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=61767 -- Edit this bug report at https://bugs.php.net/bug.php?id=61767&edit=1