Bug #13164 Updated: exit function always outputs its status

From: Date: Thu, 06 Sep 2001 05:25:04 +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-65207@lists.php.net to get a copy of this message
ID: 13164 Updated by: derick Reported By: mgm@valedofuturo.unicamp.br Old Status: Open Status: Analyzed Bug Type: Scripting Engine problem Operating System: Linux 2.2.19 PHP Version: 4.0.6 New Comment: Indeed it does, it's a synonym for die(). I wonder if this is intentional or not. Zeev, Andi? Previous Comments: ------------------------------------------------------------------------ [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 (#65207) next »