|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62294 register_shutdow_function() does not handle correctly exit code
Submitted: 2012-06-11 15:02 UTC Modified: -
Avg. Score:4.5 ± 0.6
Reproduced:10 of 10 (100.0%)
Same Version:10 (100.0%)
Same OS:5 (50.0%)
From: frederic dot hardy at mageekbox dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.4.3 OS: Mac OS X
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: frederic dot hardy at mageekbox dot net
New email:
PHP Version: OS:


 [2012-06-11 15:02 UTC] frederic dot hardy at mageekbox dot net
When a fatal error is throwed in a callback used with 
register_shutdown_function(), php exit code is 0 instead of 255.
There is no problem with PHP < 5.4

Test script:

			require 'path/to/an/unknown/file';

Expected result:
# php testScript.php
# echo $?

Actual result:
# php testScript.php
# echo $?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-08-10 10:55 UTC]
Automatic comment on behalf of
Log: Fixed bug #62294
 [2020-08-10 10:55 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Dec 08 00:01:30 2023 UTC