fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed this.

This commit is contained in:
Greg Beaver 2004-02-07 04:42:07 +00:00
parent fed3044000
commit 71b6a816f6

View File

@ -40,6 +40,15 @@ if (substr(PHP_OS, 0, 3) == 'WIN') {
define('PEAR_OS', 'Unix'); // blatant assumption
}
// instant backwards compatibility
if (!defined('PATH_SEPARATOR')) {
if (OS_WINDOWS) {
define('PATH_SEPARATOR', ';');
} else {
define('PATH_SEPARATOR', ':');
}
}
$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN;
$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE;
$GLOBALS['_PEAR_destructor_object_list'] = array();