From: Gunnar Wrobel Date: Thu, 25 Nov 2010 14:23:44 +0000 (+0100) Subject: Use the current error reporting as a base. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1f38688de05fb375129c668af3db22551e093144;p=horde.git Use the current error reporting as a base. Otherwise we get E_DEPRECATED activated during autoloading even it was removed before. --- diff --git a/framework/Test/lib/Horde/Test/Autoload.php b/framework/Test/lib/Horde/Test/Autoload.php index d4a6cc1a1..6aa55c6bd 100644 --- a/framework/Test/lib/Horde/Test/Autoload.php +++ b/framework/Test/lib/Horde/Test/Autoload.php @@ -22,7 +22,7 @@ if (empty($autoloaders)) { create_function( '$class', '$filename = str_replace(array(\'::\', \'_\'), \'/\', $class);' - . '$err_mask = E_ALL ^ E_WARNING;' + . '$err_mask = error_reporting() & ~E_WARNING;' . '$oldErrorReporting = error_reporting($err_mask);' . 'include "$filename.php";' . 'error_reporting($oldErrorReporting);'