Development

Changeset 2979

You must first sign up to be able to contribute.

Changeset 2979

Show
Ignore:
Timestamp:
12/08/06 20:44:57 (2 years ago)
Author:
fabien
Message:

fixed lime::find_php_cli() problem when PEAR is not installed (closes #1207)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tools/lime/lib/lime.php

    r2977 r2979  
    380380  { 
    381381    $path = getenv('PATH') ? getenv('PATH') : getenv('Path'); 
    382     $exe_suffixes = OS_WINDOWS ? (getenv('PATHEXT') ? explode(PATH_SEPARATOR, getenv('PATHEXT')) : array('.exe', '.bat', '.cmd', '.com')) : array(); 
     382    $exe_suffixes = substr(PHP_OS, 0, 3) == 'WIN' ? (getenv('PATHEXT') ? explode(PATH_SEPARATOR, getenv('PATHEXT')) : array('.exe', '.bat', '.cmd', '.com')) : array(); 
    383383    foreach (array('php5', 'php') as $php_cli) 
    384384    {