cvs: php4 / run-tests.php
| From: | Stig Bakken | Date: | Sat, 09 Sep 2000 00:37:39 +0000 |
| Subject: | cvs: php4 / run-tests.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1654@lists.php.net to get a copy of this message | ||
ssb Fri Sep 8 17:37:39 2000 EDT
Modified files:
/php4 run-tests.php
Log:
* don't require "POST" section to be present (TEST, FILE and EXPECT
are enough)
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.4 php4/run-tests.php:1.5
--- php4/run-tests.php:1.4 Sun Sep 3 02:37:20 2000
+++ php4/run-tests.php Fri Sep 8 17:37:39 2000
@@ -380,7 +380,11 @@
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");