summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2003-08-11 20:02:05 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2003-08-11 20:02:05 +0000
commit8fe4a53877d1b0abc7fdc85a3e3adc08c124ecc3 (patch)
treeb978eac9c8c6cfec7b63ac05335bd36cdf69c57c /run-tests.php
parenta5c6b9127e931b7eb7381faca2a4ef5ec8e967c5 (diff)
downloadphp-git-8fe4a53877d1b0abc7fdc85a3e3adc08c124ecc3.tar.gz
Ensure CGI binary works like CLI.
# This kind of mess should be removed if other better way is found.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/run-tests.php b/run-tests.php
index e61bcedb4b..585adfc282 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -731,8 +731,8 @@ TEST $file
if (trim($section_text['SKIPIF'])) {
save_text($tmp_skipif, $section_text['SKIPIF']);
$extra = substr(PHP_OS, 0, 3) !== "WIN" ?
- "unset REQUEST_METHOD;": "";
- $output = system_with_timeout("$extra $php $info_params $tmp_skipif");
+ "unset REQUEST_METHOD; unset QUERY_STRING; unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;": "";
+ $output = system_with_timeout("$extra $php -q $info_params $tmp_skipif");
@unlink($tmp_skipif);
if (eregi("^skip", trim($output))) {
echo "SKIP $tested";