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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

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 10:01:32 2024 UTC