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 Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
41 - 8 = ?
Subscribe to this entry?

 
 [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: Tue May 07 05:01:30 2024 UTC