projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dc735e
)
Respect that E_DEPRECATED is 5.3.0 only.
author
Gunnar Wrobel
<p@rdus.de>
Tue, 5 Oct 2010 19:05:28 +0000
(21:05 +0200)
committer
Gunnar Wrobel
<p@rdus.de>
Tue, 5 Oct 2010 19:05:28 +0000
(21:05 +0200)
components/script/horde-components.php
patch
|
blob
|
history
diff --git
a/components/script/horde-components.php
b/components/script/horde-components.php
index
7285a58
..
b767f65
100755
(executable)
--- a/
components/script/horde-components.php
+++ b/
components/script/horde-components.php
@@
-8,7
+8,11
@@
if (strpos('@php_dir@', '@php_dir') === 0) {
* We are heavily relying on the PEAR libraries which are not clean with regard
* to E_STRICT.
*/
-error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
+if (version_compare(PHP_VERSION, '5.3.0', '<')) {
+ error_reporting(E_ALL & ~E_STRICT);
+} else {
+ error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
+}
require_once 'Horde/Autoloader/Default.php';
Components::main();