php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #14574 exit() and its annoying output
Submitted: 2001-12-18 04:52 UTC Modified: 2002-01-28 21:19 UTC
From: soletan at toxa dot de Assigned: derick (profile)
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: soletan at toxa dot de
New email:
PHP Version: OS:

 

 [2001-12-18 04:52 UTC] soletan at toxa dot de
Hi,

I'm using PHP to write shell scripts that support 
HTML-embedded code. The latter one rely on a minimal 
output, for instance reading a configuration by calling a 
cmdline-script that simply returns the value to some key.

exit() is very annoying because of putting out the exit 
state submitted as an integer to it. Either I have to do 
some tricks on shell script side or within my 
HTML-embedded stuff by removing that extra output. Anyway, 
it's something I shouldn't need to do if PHP wouldn't lack 
of some simple function doing the exit-job without some 
output and even without tricks included.


Thomas Urban


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-18 04:54 UTC] derick@php.net
We can not change exit, I'll have a look at a new function, shell_exit().

Derick
 [2001-12-18 06:13 UTC] derick@php.net
I mailed a patch to php-dev. Have to wait until it gets accepted.

Derick
 [2002-01-28 21:19 UTC] yohgaki@php.net
Closed :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC