note 10442 added to error_reporting

From: Date: Wed, 03 Jan 2001 22:23:58 +0000
Subject: note 10442 added to error_reporting
Groups: php.notes 
Request: Send a blank email to php-notes+get-9357@lists.php.net to get a copy of this message
//Wanta know which BITS are SET? function Display_Error_Reporting() { $err_report = array //Value ( "E_ERROR", // 1 "E_WARNING", // 2 "E_PARSE", // 4 "E_NOTICE", // 8 "E_CORE_ERROR", // 16 "E_CORE_WARNING", // 32 "E_Others" // Greater than 32 ); $er = error_reporting(); $er1 = $er; printf ("Error Reporting:<BR>\n"); printf ("<TABLE border=1>"); printf ("<TR><TD>Bit #</td><TD>Values</td><TD>Internal ". "Name</td><TD> Set</td></tr>"); for ($i=5; $i>=0; $i--) { echo "<TR>"; $er2 = pow(2,$i); printf ("<td>%s</td><td>%s</td><td>$err_report[$i]</td>", ($i), pow(2, $i)); if ($er1 >= $er2) { printf ("<td>Y</td></tr>"); $er1 = $er%$er2; } else printf ("<td>N</td></tr>"); } printf ("</table>\n"); return $er; } http://www.php.net/manual/function.error-reporting.php

« previous php.notes (#9357) next »