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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mgm at valedofuturo dot unicamp dot br
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 17:01:30 2025 UTC