summaryrefslogtreecommitdiff
path: root/run-tests.php
diff options
context:
space:
mode:
authorStig Bakken <ssb@php.net>2000-09-09 00:37:39 +0000
committerStig Bakken <ssb@php.net>2000-09-09 00:37:39 +0000
commite2cb8ec02c1713d1c9a581bf6740b57e2d4a6ab2 (patch)
tree17e8c978294f9fcc6000c0330ceb84f7c9089b59 /run-tests.php
parent3edf46ff735f1f9d51979c31097335d819e71f7a (diff)
downloadphp-git-e2cb8ec02c1713d1c9a581bf6740b57e2d4a6ab2.tar.gz
* don't require "POST" section to be present (TEST, FILE and EXPECT
are enough)
Diffstat (limited to 'run-tests.php')
-rwxr-xr-xrun-tests.php6
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");