diff options
author | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-12 06:43:15 +0000 |
---|---|---|
committer | Yasuo Ohgaki <yohgaki@php.net> | 2002-03-12 06:43:15 +0000 |
commit | 7f8b2a653325e806f97725e704dcfda9e84ce25a (patch) | |
tree | 4416a3a9d60fb3378ea5665c7cf5eda4b2face4a /tests | |
parent | f4b857f393bd98736caf39db5b82d0dcca88bf94 (diff) | |
download | php-git-7f8b2a653325e806f97725e704dcfda9e84ce25a.tar.gz |
Fix PHP version and sapi printed so that it does not print bogus
version and sapi name.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/bin-info.inc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/bin-info.inc b/tests/bin-info.inc new file mode 100644 index 0000000000..ad42ea897a --- /dev/null +++ b/tests/bin-info.inc @@ -0,0 +1,21 @@ +<?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 |