From: Stig Bakken Date: Sat, 9 Sep 2000 00:37:39 +0000 (+0000) Subject: * don't require "POST" section to be present (TEST, FILE and EXPECT X-Git-Tag: php-4.0.3RC1~235 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e2cb8ec02c1713d1c9a581bf6740b57e2d4a6ab2;p=php * don't require "POST" section to be present (TEST, FILE and EXPECT are enough) --- diff --git a/run-tests.php b/run-tests.php index 66c7d8f6c4..6b6e895e03 100755 --- a/run-tests.php +++ b/run-tests.php @@ -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");