note 89339 added to errorfunc.constants

From: Date: Wed, 04 Mar 2009 04:57:20 +0000
Subject: note 89339 added to errorfunc.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-151431@lists.php.net to get a copy of this message
Never(!) use eval() in any scripts! This is a better Version of the Script from Kenneth Kin Lum without eval() <?php $arrayErrorLevelName = array( 'E_ERROR', 'E_WARNING', 'E_PARSE', 'E_NOTICE', 'E_CORE_ERROR', 'E_CORE_WARNING', 'E_COMPILE_ERROR', 'E_COMPILE_WARNING', 'E_USER_ERROR', 'E_USER_WARNING', 'E_USER_NOTICE', 'E_STRICT', 'E_RECOVERABLE_ERROR', 'E_DEPRECATED', 'E_USER_DEPRECATED' ); echo "<pre>On PHP " . phpversion() . "\nE_ALL includes\n--------------\n";; foreach ($arrayErrorLevelName as $errorLevelName) { if (defined($errorLevelName) and constant($errorLevelName) & E_ALL) echo("$errorLevelName\n"); } ?> ---- Server IP: 217.160.72.57 Probable Submitter: 85.179.216.195 ---- Manual Page -- http://www.php.net/manual/en/errorfunc.constants.php Edit -- https://master.php.net/note/edit/89339 Del: integrated -- https://master.php.net/note/delete/89339/integrated Del: useless -- https://master.php.net/note/delete/89339/useless Del: bad code -- https://master.php.net/note/delete/89339/bad+code Del: spam -- https://master.php.net/note/delete/89339/spam Del: non-english -- https://master.php.net/note/delete/89339/non-english Del: in docs -- https://master.php.net/note/delete/89339/in+docs Del: other reasons-- https://master.php.net/note/delete/89339 Reject -- https://master.php.net/note/reject/89339 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#151431) next »