Bug #61767 [Ana]: Shutdown functions not called in certain error situation
| From: | dmitry@php.net | Date: | Wed, 05 Sep 2012 08:20:31 +0000 |
| Subject: | Bug #61767 [Ana]: Shutdown functions not called in certain error situation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-173187@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61767&edit=1
ID: 61767
Updated by: dmitry@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
Assigned To: dmitry
Block user comment: N
Private report: N
New Comment:
I've added a patch that fixes the problem in different way. (bug61767.diff tested with 5.3
only)
In case of unhanded exception and following fatal error we just emit additional warning about
uncaught exception before the fatal error. This solution doesn't miss exceptions (as
another_fix_for_bug61767.patch) and doesn't require significant changes in VM (as
bug61767.patch) that would affect PHP performance.
Please take a look.
Previous Comments:
------------------------------------------------------------------------
[2012-09-05 08:14:53] dmitry@php.net
The following patch has been added/updated:
Patch Name: bug61767.diff
Revision: 1346832893
URL: https://bugs.php.net/patch-display.php?bug=61767&patch=bug61767.diff&revision=1346832893
------------------------------------------------------------------------
[2012-09-05 03:08:23] laruence@php.net
could you please look at this?
since it is in shutdown pharse, then I think it's okey to suppress the exception?
thanks
------------------------------------------------------------------------
[2012-05-28 16:49:06] shiranai7 at hotmail dot com
Still the same (unexpected) result in 5.4.3.
Error handler called
Fatal error: Call to a member function foo() on a non-object in ... on line ...
------------------------------------------------------------------------
[2012-04-24 11:37:12] shiranai7 at hotmail dot com
I wonder if this fix will make it to the 5.4.1 release.
------------------------------------------------------------------------
[2012-04-20 09:50:14] laruence@php.net
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
------------------------------------------------------------------------
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