[Fusionforge-commits] r10262 - trunk/src/common/include

Thorsten Glaser mirabilos at libremir.placard.fr.eu.org
Fri Jul 16 18:04:55 CEST 2010


Author: mirabilos
Date: 2010-07-16 18:04:55 +0200 (Fri, 16 Jul 2010)
New Revision: 10262

Modified:
   trunk/src/common/include/extras-debug.php
Log:
do not display errors that come from lines that ignore them normally


Modified: trunk/src/common/include/extras-debug.php
===================================================================
--- trunk/src/common/include/extras-debug.php	2010-07-16 16:02:41 UTC (rev 10261)
+++ trunk/src/common/include/extras-debug.php	2010-07-16 16:04:55 UTC (rev 10262)
@@ -1,10 +1,16 @@
 <?php
 
+$sysdebug_ignored = forge_get_config('sysdebug_ignored');
+
 // error handler function
 function ffErrorHandler($errno, $errstr, $errfile, $errline)
 {
-	global $ffErrors;
+	global $ffErrors, $sysdebug_ignored;
 
+	if ($sysdebug_ignored && error_reporting() == 0)
+		/* prepended @ to statement => ignore */
+		return false;
+
 	if (!isset($ffErrors))
 		$ffErrors = array();
 




More information about the Fusionforge-commits mailing list