Doc #67961 [Opn->Nab]: Exit code 0 when using exception handler
| From: | krakjoe@php.net | Date: | Sun, 21 Sep 2014 06:28:31 +0000 |
| Subject: | Doc #67961 [Opn->Nab]: Exit code 0 when using exception handler | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11490@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67961&edit=1
ID: 67961
Updated by: krakjoe@php.net
Reported by: josef at bugweis dot com
Summary: Exit code 0 when using exception handler
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2014-09-04 16:56:07] 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?
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67961&edit=1