Development

Changeset 2981

You must first sign up to be able to contribute.

Changeset 2981

Show
Ignore:
Timestamp:
12/08/06 23:02:16 (2 years ago)
Author:
fabien
Message:

lime: added -q to php cli + fixed a bug in find_php_cli() method

Files:

Legend:

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

    r2979 r2981  
    380380  { 
    381381    $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(''); 
    383383    foreach (array('php5', 'php') as $php_cli) 
    384384    { 
     
    584584      file_put_contents($tmp_file, $tmp); 
    585585      ob_start(); 
    586       passthru(sprintf('%s %s 2>&1', $this->harness->php_cli, $tmp_file), $return); 
     586      passthru(sprintf('%s -q "%s" 2>&1', $this->harness->php_cli, $tmp_file), $return); 
    587587      $retval = ob_get_clean(); 
    588588      if (0 == $return)