note 10442 deleted from function.error-reporting by philip

From: Date: Mon, 06 May 2002 01:54:49 +0000
Subject: note 10442 deleted from function.error-reporting by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-30246@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; }

« previous php.notes (#30246) next »