php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #67961 Exit code 0 when using exception handler
Submitted: 2014-09-04 16:56 UTC Modified: 2014-09-21 06:28 UTC
From: josef at bugweis dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2014-09-04 16:56 UTC] josef at bugweis dot com
Description:
------------
---
From manual page: http://www.php.net/function.set-exception-handler
---

Originally I wanted to add a note, but decided to post a bug instead.

Missing documentation:

"On GNU/Linux, When an exception handler is called, PHP will end with exit code 0 instead of 255."

Although this may be logical/obvious, I still believe it should be documented.

It seems to be possible to change the exit code simply with an exit() call in the error handler. Could that be added to the doc as well, if it has no side effects?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-09-21 06:28 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2014-09-21 06:28 UTC] krakjoe@php.net
It is logical and obvious; if we get into the business of including everything that is logical and obvious, about everything, on every page of the documentation, the manual would be huge, and useless.
 [2014-09-22 10:37 UTC] josef at bugweis dot com
Right. Added a note instead.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 13:01:29 2024 UTC