derick Fri Feb 15 04:13:28 2002 EDT Modified files: /phpdoc/en/functions errorfunc.xml misc.xml Log: - Properly document the exist status Index: phpdoc/en/functions/errorfunc.xml diff -u phpdoc/en/functions/errorfunc.xml:1.24 phpdoc/en/functions/errorfunc.xml:1.25 --- phpdoc/en/functions/errorfunc.xml:1.24 Tue Feb 12 14:41:18 2002 +++ phpdoc/en/functions/errorfunc.xml Fri Feb 15 04:13:26 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.24 $ --> +<!-- $Revision: 1.25 $ --> <reference id="ref.errorfunc"> <title>Error Handling and Logging Functions</title> <titleabbrev>Errors and Logging</titleabbrev> @@ -352,7 +352,7 @@ echo " Fatal error in line ".$errline." of file ".$errfile; echo ", PHP ".PHP_VERSION." (".PHP_OS.")<br>\n"; echo "Aborting...<br>\n"; - exit -1; + exit 1; break; case ERROR: echo "<b>ERROR</b> [$errno] $errstr<br>\n"; Index: phpdoc/en/functions/misc.xml diff -u phpdoc/en/functions/misc.xml:1.67 phpdoc/en/functions/misc.xml:1.68 --- phpdoc/en/functions/misc.xml:1.67 Sat Feb 2 10:36:03 2002 +++ phpdoc/en/functions/misc.xml Fri Feb 15 04:13:27 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.67 $ --> +<!-- $Revision: 1.68 $ --> <reference id="ref.misc"> <title>Miscellaneous functions</title> <titleabbrev>Misc.</titleabbrev> @@ -339,7 +339,9 @@ </simpara> <simpara> If <parameter>status</parameter> is an <type>integer</type>, 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. </simpara> <note> <simpara>