note 29367 added to function.error-reporting
| From: | ronald at segment dot info | Date: | Tue, 11 Feb 2003 14:09:56 +0000 |
| Subject: | note 29367 added to function.error-reporting | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43785@lists.php.net to get a copy of this message | ||
Function translateErrorReportingConstant2String()
{
$current = error_reporting();
$out = "";
if (($current & E_ERROR ) == E_ERROR ){ $out .=" E_ERROR |
"; }
if (($current & E_WARNING ) == E_WARNING ){ $out .=" E_WARNING |
"; }
if (($current & E_PARSE ) == E_PARSE ){ $out .=" E_PARSE |
"; }
if (($current & E_NOTICE ) == E_NOTICE ){ $out .=" E_NOTICE |
"; }
if (($current & E_CORE_ERROR ) == E_CORE_ERROR ){ $out .=" E_CORE_ERROR |
"; }
if (($current & E_CORE_WARNING ) == E_CORE_WARNING ){ $out .=" E_CORE_WARNING |
"; }
if (($current & E_COMPILE_ERROR ) == E_COMPILE_ERROR ){ $out .=" E_COMPILE_ERROR |
"; }
if (($current & E_COMPILE_WARNING) == E_COMPILE_WARNING){ $out .=" E_COMPILE_WARNING |
"; }
if (($current & E_USER_ERROR ) == E_USER_ERROR ){ $out .=" E_USER_ERROR |
"; }
if (($current & E_USER_WARNING ) == E_USER_WARNING ){ $out .=" E_USER_WARNING |
"; }
if (($current & E_USER_NOTICE ) == E_USER_NOTICE ){ $out .=" E_USER_NOTICE |
"; }
if (($current & E_ALL ) == E_ALL ){ $out .=" E_ALL |
"; }
return $out;
}
}
--
http://www.php.net/manual/en/function.error-reporting.php
http://master.php.net/manage/user-notes.php?action=edit+29367
http://master.php.net/manage/user-notes.php?action=delete+29367
http://master.php.net/manage/user-notes.php?action=reject+29367