Skip to content

Commit 71b6a81

Browse files
author
Greg Beaver
committed
fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed this.
1 parent fed3044 commit 71b6a81

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pear/PEAR.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@
4040
define('PEAR_OS', 'Unix'); // blatant assumption
4141
}
4242

43+
// instant backwards compatibility
44+
if (!defined('PATH_SEPARATOR')) {
45+
if (OS_WINDOWS) {
46+
define('PATH_SEPARATOR', ';');
47+
} else {
48+
define('PATH_SEPARATOR', ':');
49+
}
50+
}
51+
4352
$GLOBALS['_PEAR_default_error_mode'] = PEAR_ERROR_RETURN;
4453
$GLOBALS['_PEAR_default_error_options'] = E_USER_NOTICE;
4554
$GLOBALS['_PEAR_destructor_object_list'] = array();

0 commit comments

Comments
 (0)