From b228b990fba80421d21e0418e6169fd2ac58b377 Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Tue, 5 Oct 2010 21:05:28 +0200 Subject: [PATCH] Respect that E_DEPRECATED is 5.3.0 only. --- components/script/horde-components.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/script/horde-components.php b/components/script/horde-components.php index 7285a58dc..b767f65cb 100755 --- 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(); -- 2.11.0