dmytton Tue Apr 5 06:51:54 2005 EDT
Modified files: /phpdoc/en/reference/errorfunc/functions restore-error-handler.xml Log: Fixed example switch statement output to show correct error types http://cvs.php.net/diff.php/phpdoc/en/reference/errorfunc/functions/restore-error-handler.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc/en/reference/errorfunc/functions/restore-error-handler.xml diff -u phpdoc/en/reference/errorfunc/functions/restore-error-handler.xml:1.7 phpdoc/en/reference/errorfunc/functions/restore-error-handler.xml:1.8 --- phpdoc/en/reference/errorfunc/functions/restore-error-handler.xml:1.7 Tue Apr 5 03:16:48 2005 +++ phpdoc/en/reference/errorfunc/functions/restore-error-handler.xml Tue Apr 5 06:51:53 2005 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> +<!-- $Revision: 1.8 $ --> <!-- splitted from ./en/functions/errorfunc.xml, last change in rev 1.1 --> <refentry id="function.restore-error-handler"> <refnamediv> @@ -47,17 +47,17 @@ { switch ($errno) { case E_USER_ERROR: - echo "<b>My FATAL</b> [$errno] $errstr<br />\n"; + echo "<b>My ERROR</b> [$errno] $errstr<br />\n"; echo " Fatal error in line $errline of file $errfile"; echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")<br />\n"; echo "Aborting...<br />\n"; exit(1); break; case E_USER_WARNING: - echo "<b>My ERROR</b> [$errno] $errstr<br />\n"; + echo "<b>My WARNING</b> [$errno] $errstr<br />\n"; break; case E_USER_NOTICE: - echo "<b>My WARNING</b> [$errno] $errstr<br />\n"; + echo "<b>My NOTICE</b> [$errno] $errstr<br />\n"; break; default: echo "My unkown error type: [$errno] $errstr<br />\n";