From 1f38688de05fb375129c668af3db22551e093144 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Thu, 25 Nov 2010 15:23:44 +0100 Subject: [PATCH] Use the current error reporting as a base. Otherwise we get E_DEPRECATED activated during autoloading even it was removed before. --- framework/Test/lib/Horde/Test/Autoload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);' -- 2.11.0