php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #28180 minor doc enhancement for function.exit
Submitted: 2004-04-27 13:15 UTC Modified: 2004-04-27 15:40 UTC
From: ch at lathspell dot de Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Debian GNU/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: ch at lathspell dot de
New email:
PHP Version: OS:

 

 [2004-04-27 13:15 UTC] ch at lathspell dot de
Description:
------------
http://de.php.net/manual/en/function.exit.php says:

"If status is an integer, that value will also be used as the exit status. Exit statuses should be in the range 1 to 254, the exit status 255 is reserved by PHP and shall not be used."

I think this is misleading, it should read:

"Omit 'exit' or use either 'exit;' or 'exit(0);' to terminate a successfully program as this is convention (in at least Unix environments). A non-zero exit code is used to indicate a problem. The exit status 255 is reserved by PHP and shall not be used."



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-27 15:40 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=6fbc6ad8bf4fd45e8a0bc96dd0aba9ae38b0a1c9
Log: fix #28180: better explanation and statuses examples
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Aug 05 14:00:03 2025 UTC