mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed this.
This commit is contained in:
parent
fed3044000
commit
71b6a816f6
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user