Bug #13164: exit function always outputs its status
| From: | mgm at valedofuturo dot unicamp dot br | Date: | Thu, 06 Sep 2001 04:48:37 +0000 |
| Subject: | Bug #13164: exit function always outputs its status | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65205@lists.php.net to get a copy of this message | ||
From: mgm@valedofuturo.unicamp.br
Operating system: Linux 2.2.19
PHP version: 4.0.6
PHP Bug Type: Scripting Engine problem
Bug description: exit function always outputs its status
The 'exit' function always outputs its exit status.
This is particularly annoying in command line scripts that need to return
an error status like '1', which is printed to stdout before termination.
Surely it should not output anything. The programer always can output
whatever (s)he likes before calling 'exit'.
--
Edit bug report at: http://bugs.php.net/?id=13164&edit=1