]> granicus.if.org Git - php/commitdiff
* don't require "POST" section to be present (TEST, FILE and EXPECT
authorStig Bakken <ssb@php.net>
Sat, 9 Sep 2000 00:37:39 +0000 (00:37 +0000)
committerStig Bakken <ssb@php.net>
Sat, 9 Sep 2000 00:37:39 +0000 (00:37 +0000)
  are enough)

run-tests.php

index 66c7d8f6c4b6592c119daf73ba6107bf8f5cb196..6b6e895e0397c0ed317205eacb6fb0eec640bd1b 100755 (executable)
@@ -380,7 +380,11 @@ function run_test($file) {
     putenv("b=");
     putenv("c=");
     putenv("d=");
-    $cmd = "$php -f $tmpfile[FILE] < $tmpfile[POST]";
+    if (isset($fps["POST"])) {
+       $cmd = "$php -f $tmpfile[FILE] < $tmpfile[POST]";
+    } else {
+       $cmd = "$php -f $tmpfile[FILE]";
+    }
     $ofp = @fopen($tmpfile["OUTPUT"], "w");
     if (!$ofp) {
        writeln("Error: could not write to output file");