From: Gunnar Wrobel Date: Tue, 5 Oct 2010 19:09:28 +0000 (+0200) Subject: Respect that E_DEPRECATED is 5.3.0 only. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=1a583fe4c3b8892a3a1c8256029d940ed48865af;p=horde.git Respect that E_DEPRECATED is 5.3.0 only. --- diff --git a/framework/bin/install_framework b/framework/bin/install_framework index ce1bfe353..6760fd715 100755 --- a/framework/bin/install_framework +++ b/framework/bin/install_framework @@ -162,7 +162,9 @@ if (!(@include_once 'PEAR/Config.php') || !(@include_once 'PEAR/PackageFile.php')) { print_usage('PEAR libraries are not in the PHP include_path.'); } -error_reporting(E_ALL & ~E_DEPRECATED); +if (version_compare(PHP_VERSION, '5.3.0', '>')) { + error_reporting(E_ALL & ~E_DEPRECATED); +} $pear_config = PEAR_Config::singleton(); $pear_pkg = new PEAR_PackageFile($pear_config);