Doc #67961 [NEW]: Exit code 0 when using exception handler
| From: | josef at bugweis dot com | Date: | Thu, 04 Sep 2014 16:56:08 +0000 |
| Subject: | Doc #67961 [NEW]: Exit code 0 when using exception handler | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11460@lists.php.net to get a copy of this message | ||
From: josef at bugweis dot com
Operating system: Linux
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Exit code 0 when using exception handler
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 bug report at https://bugs.php.net/bug.php?id=67961&edit=1
--