includes/common.php
changeset 458 c433348f3628
parent 436 242353360e37
parent 443 a48b72312f6d
child 468 194a19711346
--- a/includes/common.php	Fri Feb 22 12:48:57 2008 -0500
+++ b/includes/common.php	Fri Feb 22 12:51:53 2008 -0500
@@ -45,6 +45,7 @@
  * @return float
  */
 
+// First check to see if something already declared this function.... it happens often.
 if ( !function_exists('microtime_float') )
 {
   function microtime_float()
@@ -59,7 +60,16 @@
 $_starttime = microtime_float();
 
 // Verbose error reporting
-error_reporting(E_ALL);
+if ( defined('E_STRICT') )
+{
+  // PHP5, PHP6
+  error_reporting(E_ALL & ~E_STRICT);
+}
+else
+{
+  // PHP4
+  error_reporting(E_ALL);
+}
 
 //
 // Determine the location of Enano as an absolute path.