From 800e297a95f1da6b710f17f1d121b0deddd99466 Mon Sep 17 00:00:00 2001 From: David Mytton Date: Tue, 5 Apr 2005 10:51:53 +0000 Subject: [PATCH] Fixed example switch statement output to show correct error types git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183647 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/errorfunc/functions/restore-error-handler.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reference/errorfunc/functions/restore-error-handler.xml b/reference/errorfunc/functions/restore-error-handler.xml index eb5bd3b8bf..03d08c4ffe 100644 --- a/reference/errorfunc/functions/restore-error-handler.xml +++ b/reference/errorfunc/functions/restore-error-handler.xml @@ -1,5 +1,5 @@ - + @@ -47,17 +47,17 @@ function myErrorHandler($errno, $errstr, $errfile, $errline) { switch ($errno) { case E_USER_ERROR: - echo "My FATAL [$errno] $errstr
\n"; + echo "My ERROR [$errno] $errstr
\n"; echo " Fatal error in line $errline of file $errfile"; echo ", PHP " . PHP_VERSION . " (" . PHP_OS . ")
\n"; echo "Aborting...
\n"; exit(1); break; case E_USER_WARNING: - echo "My ERROR [$errno] $errstr
\n"; + echo "My WARNING [$errno] $errstr
\n"; break; case E_USER_NOTICE: - echo "My WARNING [$errno] $errstr
\n"; + echo "My NOTICE [$errno] $errstr
\n"; break; default: echo "My unkown error type: [$errno] $errstr
\n";