cvs: php4 / run-tests.php /tests bin-info.inc
| From: | Yasuo Ohgaki | Date: | Tue, 12 Mar 2002 06:43:15 +0000 |
| Subject: | cvs: php4 / run-tests.php /tests bin-info.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-9932@lists.php.net to get a copy of this message | ||
yohgaki Tue Mar 12 01:43:15 2002 EDT
Added files:
/php4/tests bin-info.inc
Modified files:
/php4 run-tests.php
Log:
Fix PHP version and sapi printed so that it does not print bogus
version and sapi name.
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.36 php4/run-tests.php:1.37
--- php4/run-tests.php:1.36 Tue Mar 12 00:33:03 2002
+++ php4/run-tests.php Tue Mar 12 01:43:14 2002
@@ -284,8 +284,8 @@
dowriteln(sprintf("Tests passed: %4d (%s%%)", $passed, $passed_pstr));
dowriteln("=============================");
dowriteln("Skipped ".sizeof($skipped_extensions)." extensions.");
- dowriteln("PHP SAPI: ".PHP_SAPI);
- dowriteln("PHP Version: ".PHP_VERSION);
+ $php_bin_info_cmd = "$php -q -f tests/bin-info.inc";
+ system($php_bin_info_cmd, $ret);
}
function find_testdirs($dir = '.', $first_pass = true)
Index: php4/tests/bin-info.inc
+++ php4/tests/bin-info.inc
<?php
// Used to print php binary info used to run
// test scripts.
// Called from run-tests.php
function dowrite($str)
{
global $term_bold, $term_norm;
$str = str_replace("%b", $term_bold, $str);
$str = str_replace("%B", $term_norm, $str);
print $str;
}
function dowriteln($str)
{
dowrite("$str\n");
}
dowriteln("PHP SAPI: ".PHP_SAPI);
dowriteln("PHP Version: ".PHP_VERSION);
?>