diff options
| author | Shane Caraveo <shane@php.net> | 2002-10-28 01:43:54 +0000 |
|---|---|---|
| committer | Shane Caraveo <shane@php.net> | 2002-10-28 01:43:54 +0000 |
| commit | c82c6263e8b2ab9744bbe45a8a6d118350b6b1fe (patch) | |
| tree | d6d72ecdf61955607c98fab651880d8e805b23f7 | |
| parent | 6c9a7584f1f868de621439112d4ffd4d80f44d7c (diff) | |
| download | php-git-c82c6263e8b2ab9744bbe45a8a6d118350b6b1fe.tar.gz | |
fix getting ini values that contain the char =
fix command line quoting. windows requires double quotes in order to handle & (in ini values) correctly
| -rwxr-xr-x | run-tests.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/run-tests.php b/run-tests.php index 3598f1728e..7cd31b3ec6 100755 --- a/run-tests.php +++ b/run-tests.php @@ -272,8 +272,7 @@ define('QA_SUBMISSION_PAGE', 'http://qa.php.net/buildtest-process.php'); /* We got failed Tests, offer the user to send and e-mail to QA team, unless NO_INTERACTION is set */ if ($sum_results['FAILED'] && !getenv('NO_INTERACTION')) { $fp = fopen("php://stdin", "r+"); - fwrite($fp, "Some tests have failed, would you like to send the\nreport to PHP's QA team? [Yn]: "); - fflush($fp); + echo "Some tests have failed, would you like to send the\nreport to PHP's QA team? [Yn]: "; $user_input = fgets($fp, 10); if (strlen(trim($user_input)) == 0 || strtolower($user_input[0]) == 'y') { @@ -509,17 +508,17 @@ TEST $file if (array_key_exists('INI', $section_text)) { foreach(preg_split( "/[\n\r]+/", $section_text['INI']) as $setting) { if (strpos($setting, '=')!==false) { - $setting = explode("=", $setting); + $setting = explode("=", $setting,2); $name = trim(strtolower($setting[0])); $value = trim($setting[1]); - $ini_settings[$name] = $value; + $ini_settings[$name] = addslashes($value); } } } if (count($ini_settings)) { $settings = ''; foreach($ini_settings as $name => $value) { - $settings .= " -d '$name=$value'"; + $settings .= " -d \"$name=$value\""; } $ini_settings = $settings; } else { |
