From: Gunnar Wrobel Date: Tue, 5 Oct 2010 19:05:28 +0000 (+0200) Subject: Respect that E_DEPRECATED is 5.3.0 only. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b228b990fba80421d21e0418e6169fd2ac58b377;p=horde.git Respect that E_DEPRECATED is 5.3.0 only. --- 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();