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)
--- /dev/null
+<?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);
+?>
\ No newline at end of file