Skip to content

Commit

Permalink
Add spaces between command line portions (to avoid silliness like "ph…
Browse files Browse the repository at this point in the history
…p-cgi-d" when "php-cgi -d" is meant).
  • Loading branch information
convissor committed Dec 23, 2011
1 parent 39773bc commit 24e82c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PEAR/RunTest.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function run($file, $ini_settings_cmd_line = array(), $test_number = 1)
$env['REQUEST_METHOD'] = 'POST'; $env['REQUEST_METHOD'] = 'POST';


$this->save_text($tmp_post, $request); $this->save_text($tmp_post, $request);
$cmd = "$this->_php$pass_options$ini_settings_all \"$temp_file\" 2>&1 < $tmp_post"; $cmd = "$this->_php $pass_options $ini_settings_all \"$temp_file\" 2>&1 < $tmp_post";
} elseif (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) { } elseif (array_key_exists('POST', $section_text) && !empty($section_text['POST'])) {
$post = trim($section_text['POST']); $post = trim($section_text['POST']);
$this->save_text($tmp_post, $post); $this->save_text($tmp_post, $post);
Expand All @@ -469,7 +469,7 @@ function run($file, $ini_settings_cmd_line = array(), $test_number = 1)
$env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded'; $env['CONTENT_TYPE'] = 'application/x-www-form-urlencoded';
$env['CONTENT_LENGTH'] = $content_length; $env['CONTENT_LENGTH'] = $content_length;


$cmd = "$this->_php$pass_options$ini_settings_all \"$temp_file\" 2>&1 < $tmp_post"; $cmd = "$this->_php $pass_options $ini_settings_all \"$temp_file\" 2>&1 < $tmp_post";
} else { } else {
$env['REQUEST_METHOD'] = 'GET'; $env['REQUEST_METHOD'] = 'GET';
$env['CONTENT_TYPE'] = ''; $env['CONTENT_TYPE'] = '';
Expand Down Expand Up @@ -753,7 +753,7 @@ function _runSkipIf($section_text, $temp_skipif, $tested, $ini_settings)
$warn = false; $warn = false;
if (array_key_exists('SKIPIF', $section_text) && trim($section_text['SKIPIF'])) { if (array_key_exists('SKIPIF', $section_text) && trim($section_text['SKIPIF'])) {
$this->save_text($temp_skipif, $section_text['SKIPIF']); $this->save_text($temp_skipif, $section_text['SKIPIF']);
$output = $this->system_with_timeout("$this->_php$ini_settings -f \"$temp_skipif\""); $output = $this->system_with_timeout("$this->_php $ini_settings -f \"$temp_skipif\"");
$output = $output[1]; $output = $output[1];
$loutput = ltrim($output); $loutput = ltrim($output);
unlink($temp_skipif); unlink($temp_skipif);
Expand Down

0 comments on commit 24e82c6

Please sign in to comment.