Better style.
authorGunnar Wrobel <p@rdus.de>
Tue, 5 Oct 2010 19:11:48 +0000 (21:11 +0200)
committerGunnar Wrobel <p@rdus.de>
Tue, 5 Oct 2010 19:11:48 +0000 (21:11 +0200)
components/script/horde-components.php
framework/bin/install_framework

index b767f65..8bc171f 100755 (executable)
@@ -8,10 +8,10 @@ if (strpos('@php_dir@', '@php_dir') === 0) {
  * We are heavily relying on the PEAR libraries which are not clean with regard
  * to E_STRICT.
  */
-if (version_compare(PHP_VERSION, '5.3.0', '<')) {
-    error_reporting(E_ALL & ~E_STRICT);
-} else {
+if (defined('E_DEPRECATED')) {
     error_reporting(E_ALL & ~E_STRICT & ~E_DEPRECATED);
+} else {
+    error_reporting(E_ALL & ~E_STRICT);
 }
 
 require_once 'Horde/Autoloader/Default.php';
index 6760fd7..9bbe69c 100755 (executable)
@@ -162,7 +162,7 @@ if (!(@include_once 'PEAR/Config.php') ||
     !(@include_once 'PEAR/PackageFile.php')) {
     print_usage('PEAR libraries are not in the PHP include_path.');
 }
-if (version_compare(PHP_VERSION, '5.3.0', '>')) {
+if (defined('E_DEPRECATED')) {
    error_reporting(E_ALL & ~E_DEPRECATED);
 }
 $pear_config = PEAR_Config::singleton();