Changeset 2989
- Timestamp:
- 12/09/06 12:10:45 (2 years ago)
- Files:
-
- tools/lime/lib/lime.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/lib/lime.php
r2981 r2989 332 332 { 333 333 // disable colors if not supported (windows or non tty console) 334 if ( strtoupper(substr(PHP_OS, 0, 3)) == 'WIN' || !function_exists('posix_isatty') || !@posix_isatty(STDOUT))334 if (DIRECTORY_SEPARATOR == '\\' || !function_exists('posix_isatty') || !@posix_isatty(STDOUT)) 335 335 { 336 336 return $text; … … 380 380 { 381 381 $path = getenv('PATH') ? getenv('PATH') : getenv('Path'); 382 $exe_suffixes = substr(PHP_OS, 0, 3) == 'WIN' ? (getenv('PATHEXT') ? explode(PATH_SEPARATOR, getenv('PATHEXT')) : array('.exe', '.bat', '.cmd', '.com')) : array('');382 $exe_suffixes = DIRECTORY_SEPARATOR == '\\' ? (getenv('PATHEXT') ? explode(PATH_SEPARATOR, getenv('PATHEXT')) : array('.exe', '.bat', '.cmd', '.com')) : array(''); 383 383 foreach (array('php5', 'php') as $php_cli) 384 384 {