]> granicus.if.org Git - php/commitdiff
Ensure CGI binary works like CLI.
authorMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 11 Aug 2003 20:02:05 +0000 (20:02 +0000)
committerMoriyoshi Koizumi <moriyoshi@php.net>
Mon, 11 Aug 2003 20:02:05 +0000 (20:02 +0000)
# This kind of mess should be removed if other better way is found.

run-tests.php

index e61bcedb4b38091d3130b65b8331e95aa92ce56c..585adfc2829b9af7499ef72a2a287ea7e5943771 100755 (executable)
@@ -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";