Edit report at https://bugs.php.net/bug.php?id=61767&edit=1

 ID:                 61767
 Updated by:         [email protected]
 Reported by:        shiranai7 at hotmail dot com
 Summary:            Shutdown functions not called in certain error
                     situation
-Status:             Analyzed
+Status:             Closed
 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:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2012-09-06 10:04:04] [email protected]

Automatic comment on behalf of [email protected]
Revision: 
http://git.php.net/?p=php-src.git;a=commit;h=b29dc146b9311c14186c14bcb1c8ae5288b65d73
Log: - Fixed bug #61767 (Shutdown functions not called in certain error 
situation) - Fixed bug #60909 (custom error handler throwing Exception + fatal 
error = no shutdown function)

------------------------------------------------------------------------
[2012-09-05 08:20:30] [email protected]

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.

------------------------------------------------------------------------
[2012-09-05 08:14:53] [email protected]

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] [email protected]

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 ...

------------------------------------------------------------------------


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

Reply via email to