|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65275 Calling exit() in a shutdown function does not change the exit value in CLI
Submitted: 2013-07-16 17:44 UTC Modified: 2013-07-17 14:56 UTC
Avg. Score:4.2 ± 0.8
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: david at grudl dot com Assigned:
Status: Open Package: Scripting Engine problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
33 - 26 = ?
Subscribe to this entry?

 [2013-07-16 17:44 UTC] david at grudl dot com
This code is exited with error code 111 in CGI, but under CLI the error code remains 255.



This bug is similar to, but there is big difference between die(0) and die(255). 


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-16 17:50 UTC] david at grudl dot com
(btw numbers #65275 and #62725 are similar too :-)
 [2013-07-17 14:56 UTC]
the problem here is, we don't know whether there was a new exit_status set to 
EG(exit_status) in request_shutdown phase..
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Jul 08 15:01:27 2020 UTC