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

Pull Requests

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: Sat Sep 28 23:01:27 2024 UTC