php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13164 exit function always outputs its status
Submitted: 2001-09-06 00:48 UTC Modified: 2002-01-06 08:50 UTC
From: mgm at valedofuturo dot unicamp dot br Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.6 OS: Linux 2.2.19
Private report: No CVE-ID: None
 [2001-09-06 00:48 UTC] mgm at valedofuturo dot unicamp dot 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'.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-06 01:25 UTC] derick@php.net
Indeed it does, it's a synonym for die(). I wonder if this is intentional or not.
Zeev, Andi?
 [2002-01-06 08:50 UTC] mfischer@php.net
Fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC