Changeset 19488
- Timestamp:
- 06/24/09 09:27:06 (8 months ago)
- Files:
-
- tools/lime/trunk/lib/lime.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/lime/trunk/lib/lime.php
r18730 r19488 591 591 sort($this->files); 592 592 593 $this->stats = array(593 $this->stats = array( 594 594 '_failed_files' => array(), 595 595 '_failed_tests' => 0, … … 600 600 { 601 601 $this->stats[$file] = array( 602 'plan' => null,602 'plan' => null, 603 603 'nb_tests' => 0, 604 604 'failed' => array(), … … 611 611 ob_start(array($this, 'process_test_output')); 612 612 // see http://trac.symfony-project.org/ticket/5437 for the explanation on the weird "cd" thing 613 passthru(sprintf('cd & "%s" "%s" 2>&1', $this->php_cli, $file), $return);613 passthru(sprintf('cd & %s %s 2>&1', escapeshellarg($this->php_cli), escapeshellarg($file)), $return); 614 614 ob_end_clean(); 615 615 … … 793 793 ob_start(); 794 794 // see http://trac.symfony-project.org/ticket/5437 for the explanation on the weird "cd" thing 795 passthru(sprintf('cd & "%s" "%s" 2>&1', $this->harness->php_cli, $tmp_file), $return);795 passthru(sprintf('cd & %s %s 2>&1', escapeshellarg($this->harness->php_cli), escapeshellarg($tmp_file)), $return); 796 796 $retval = ob_get_clean(); 797 797

