diff options
| author | Stig Bakken <ssb@php.net> | 2000-09-09 00:37:39 +0000 |
|---|---|---|
| committer | Stig Bakken <ssb@php.net> | 2000-09-09 00:37:39 +0000 |
| commit | e2cb8ec02c1713d1c9a581bf6740b57e2d4a6ab2 (patch) | |
| tree | 17e8c978294f9fcc6000c0330ceb84f7c9089b59 | |
| parent | 3edf46ff735f1f9d51979c31097335d819e71f7a (diff) | |
| download | php-git-e2cb8ec02c1713d1c9a581bf6740b57e2d4a6ab2.tar.gz | |
* don't require "POST" section to be present (TEST, FILE and EXPECT
are enough)
| -rwxr-xr-x | run-tests.php | 6 |
1 files changed, 5 insertions, 1 deletions
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"); |
