]> granicus.if.org Git - php/commitdiff
fix PATH_SEPARATOR issues - was defined in PHP 4.3.0, but documentation never showed...
authorGreg Beaver <cellog@php.net>
Sat, 7 Feb 2004 04:42:07 +0000 (04:42 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 7 Feb 2004 04:42:07 +0000 (04:42 +0000)
pear/PEAR.php

index 017b88b5441702d86b7f2deb04b0cc9203396538..87e988c27c9513af95c8d0abba7fa857512f5bb9 100644 (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();