From 1a583fe4c3b8892a3a1c8256029d940ed48865af Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel
Date: Tue, 5 Oct 2010 21:09:28 +0200 Subject: [PATCH] Respect that E_DEPRECATED is 5.3.0 only. --- framework/bin/install_framework | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.11.0