From 33c5ac0166a658fec19545856f5cbce5fdfbcf56 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 15 Feb 2002 09:13:27 +0000 Subject: [PATCH] - Properly document the exist status git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@70284 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/errorfunc.xml | 4 ++-- functions/misc.xml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/functions/errorfunc.xml b/functions/errorfunc.xml index ae2418180c..b56fa7da1a 100644 --- a/functions/errorfunc.xml +++ b/functions/errorfunc.xml @@ -1,5 +1,5 @@ - + Error Handling and Logging Functions Errors and Logging @@ -352,7 +352,7 @@ function myErrorHandler ($errno, $errstr, $errfile, $errline) { echo " Fatal error in line ".$errline." of file ".$errfile; echo ", PHP ".PHP_VERSION." (".PHP_OS.")
\n"; echo "Aborting...
\n"; - exit -1; + exit 1; break; case ERROR: echo "ERROR [$errno] $errstr
\n"; diff --git a/functions/misc.xml b/functions/misc.xml index de01b60938..072aa23b7c 100644 --- a/functions/misc.xml +++ b/functions/misc.xml @@ -1,5 +1,5 @@ - + Miscellaneous functions Misc. @@ -339,7 +339,9 @@ This is a cup with my coffee in it. If status is an integer, that value - will also be used as the exit status. + 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.