note 109012 added to errorfunc.constants

From: Date: Tue, 12 Jun 2012 13:45:01 +0000
Subject: note 109012 added to errorfunc.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-188542@lists.php.net to get a copy of this message
I think, my solution is simplier than vladvarna's: private function GetErrorName($type) { $errortypes = array( E_ERROR => 'E_ERROR', E_WARNING => 'E_WARNING', E_PARSE => 'E_PARSE', E_NOTICE => 'E_NOTICE', E_CORE_ERROR => 'E_CORE_ERROR', E_CORE_WARNING => 'E_CORE_WARNING', E_CORE_ERROR => 'E_COMPILE_ERROR', E_CORE_WARNING => 'E_COMPILE_WARNING', E_USER_ERROR => 'E_USER_ERROR', E_USER_WARNING => 'E_USER_WARNING', E_USER_NOTICE => 'E_USER_NOTICE', E_STRICT => 'E_STRICT', E_RECOVERABLE_ERROR => 'E_RECOVERABLE_ERROR', E_DEPRECATED => 'E_DEPRECATED', E_USER_DEPRECATED => 'E_USER_DEPRECATED', E_ALL => 'E_ALL' ); if (isset($errortypes[$type])) return $errortypes[$type]; return 'E_UNKNOWN'; } ---- Server IP: 69.147.83.197 Probable Submitter: 188.143.29.110 ---- Manual Page -- http://www.php.net/manual/en/errorfunc.constants.php Edit -- https://master.php.net/note/edit/109012 Del: integrated -- https://master.php.net/note/delete/109012/integrated Del: useless -- https://master.php.net/note/delete/109012/useless Del: bad code -- https://master.php.net/note/delete/109012/bad+code Del: spam -- https://master.php.net/note/delete/109012/spam Del: non-english -- https://master.php.net/note/delete/109012/non-english Del: in docs -- https://master.php.net/note/delete/109012/in+docs Del: other reasons-- https://master.php.net/note/delete/109012 Reject -- https://master.php.net/note/reject/109012 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#188542) next »