note 109904 added to errorfunc.constants

From: Date: Sun, 02 Sep 2012 07:31:52 +0000
Subject: note 109904 added to errorfunc.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-190411@lists.php.net to get a copy of this message
this would give you all the reported exception list of your configuration. ` function FriendlyErrorType($type) { $return =""; if($type & E_ERROR) // 1 // $return.='& E_ERROR '; if($type & E_WARNING) // 2 // $return.='& E_WARNING '; if($type & E_PARSE) // 4 // $return.='& E_PARSE '; if($type & E_NOTICE) // 8 // $return.='& E_NOTICE '; if($type & E_CORE_ERROR) // 16 // $return.='& E_CORE_ERROR '; if($type & E_CORE_WARNING) // 32 // $return.='& E_CORE_WARNING '; if($type & E_CORE_ERROR) // 64 // $return.='& E_COMPILE_ERROR '; if($type & E_CORE_WARNING) // 128 // $return.='& E_COMPILE_WARNING '; if($type & E_USER_ERROR) // 256 // $return.='& E_USER_ERROR '; if($type & E_USER_WARNING) // 512 // $return.='& E_USER_WARNING '; if($type & E_USER_NOTICE) // 1024 // $return.='& E_USER_NOTICE '; if($type & E_STRICT) // 2048 // $return.='& E_STRICT '; if($type & E_RECOVERABLE_ERROR) // 4096 // $return.='& E_RECOVERABLE_ERROR '; if($type & E_DEPRECATED) // 8192 // $return.='& E_DEPRECATED '; if($type & E_USER_DEPRECATED) // 16384 // $return.='& E_USER_DEPRECATED '; return substr($return,2); } echo "error_reporting = " . FriendlyErrorType(ini_get('error_reporting')) .";<br>"; ` ---- Server IP: 212.124.37.9 Probable Submitter: 178.26.66.33 ---- Manual Page -- http://www.php.net/manual/en/errorfunc.constants.php Edit -- https://master.php.net/note/edit/109904 Del: integrated -- https://master.php.net/note/delete/109904/integrated Del: useless -- https://master.php.net/note/delete/109904/useless Del: bad code -- https://master.php.net/note/delete/109904/bad+code Del: spam -- https://master.php.net/note/delete/109904/spam Del: non-english -- https://master.php.net/note/delete/109904/non-english Del: in docs -- https://master.php.net/note/delete/109904/in+docs Del: other reasons-- https://master.php.net/note/delete/109904 Reject -- https://master.php.net/note/reject/109904 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190411) next »