Changeset 2981
- Timestamp:
- 12/08/06 23:02:16 (2 years ago)
- Files:
-
- tools/lime/lib/lime.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/lib/lime.php
r2979 r2981 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 = substr(PHP_OS, 0, 3) == 'WIN' ? (getenv('PATHEXT') ? explode(PATH_SEPARATOR, getenv('PATHEXT')) : array('.exe', '.bat', '.cmd', '.com')) : array(''); 383 383 foreach (array('php5', 'php') as $php_cli) 384 384 { … … 584 584 file_put_contents($tmp_file, $tmp); 585 585 ob_start(); 586 passthru(sprintf('%s %s2>&1', $this->harness->php_cli, $tmp_file), $return);586 passthru(sprintf('%s -q "%s" 2>&1', $this->harness->php_cli, $tmp_file), $return); 587 587 $retval = ob_get_clean(); 588 588 if (0 == $return)