Bug #13164 Updated: exit function always outputs its status

From: Date: Sun, 06 Jan 2002 13:50:29 +0000
Subject: Bug #13164 Updated: exit function always outputs its status
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-76041@lists.php.net to get a copy of this message
ID: 13164 Updated by: mfischer Reported By: mgm@valedofuturo.unicamp.br Old Status: Analyzed Status: Closed Bug Type: Scripting Engine problem Operating System: Linux 2.2.19 PHP Version: 4.0.6 New Comment: Fixed in CVS. Previous Comments: ------------------------------------------------------------------------ [2001-09-06 01:25:04] derick@php.net Indeed it does, it's a synonym for die(). I wonder if this is intentional or not. Zeev, Andi? ------------------------------------------------------------------------ [2001-09-06 00:48:37] mgm@valedofuturo.unicamp.br 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 this bug report at http://bugs.php.net/?id=13164&edit=1

« previous php.dev (#76041) next »