* 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';
!(@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();