mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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
This commit is contained in:
parent
760c733d17
commit
800e297a95
1 changed files with 4 additions and 4 deletions
|
@ -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 @@ function myErrorHandler($errno, $errstr, $errfile, $errline)
|
|||
{
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue