projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8844bd8
)
Use the current error reporting as a base.
author
Gunnar Wrobel
<p@rdus.de>
Thu, 25 Nov 2010 14:23:44 +0000
(15:23 +0100)
committer
Gunnar Wrobel
<p@rdus.de>
Thu, 25 Nov 2010 14:23:44 +0000
(15:23 +0100)
Otherwise we get E_DEPRECATED activated during autoloading even it was
removed before.
framework/Test/lib/Horde/Test/Autoload.php
patch
|
blob
|
history
diff --git
a/framework/Test/lib/Horde/Test/Autoload.php
b/framework/Test/lib/Horde/Test/Autoload.php
index
d4a6cc1
..
6aa55c6
100644
(file)
--- 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);'