php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #18170 exit()
Submitted: 2002-07-04 18:35 UTC Modified: 2002-07-04 18:42 UTC
From: leon at euroxs dot nl Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.1.2 OS: Linux
Private report: No CVE-ID: None
 [2002-07-04 18:35 UTC] leon at euroxs dot nl
When using php as a shell script the function exit() does not send the exit code to the shell.

f.e. exit(100); should return 100 to the shell in my opinion.

Gr,
Leon

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-07-04 18:42 UTC] eru@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 13:00:01 2026 UTC