Doc #67961 [Com]: Exit code 0 when using exception handler

From: Date: Mon, 22 Sep 2014 10:37:44 +0000
Subject: Doc #67961 [Com]: Exit code 0 when using exception handler
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11499@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 Comment by: josef at bugweis dot com Reported by: josef at bugweis dot com Summary: Exit code 0 when using exception handler 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: Right. Added a note instead. Previous Comments: ------------------------------------------------------------------------ [2014-09-21 06:28:30] 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-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

« previous php.doc.bugs (#11499) next »