summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2002-10-30 10:42:55 +0000
committerMarcus Boerger <helly@php.net>2002-10-30 10:42:55 +0000
commitb968f905806ea25ed4928ca694467b938355f647 (patch)
treed2efa4e67255ee6d7bea77bdfd41ab01f989fd64
parent45361297f355fa979cb588f6b09d7a2c5e1a9814 (diff)
downloadphp-git-b968f905806ea25ed4928ca694467b938355f647.tar.gz
Get infos from php running tests not from php running run-test.php
-rwxr-xr-xrun-tests.php20
1 files changed, 14 insertions, 6 deletions
diff --git a/run-tests.php b/run-tests.php
index d08d180b39..7ab4e6823e 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -96,17 +96,25 @@ if (getenv('TEST_PHP_USER')) {
$user_tests = array();
}
+// Get info from php
+$info_file = realpath(dirname(__FILE__)) . '/run-test-info.php';
+@unlink($info_file);
+$php_info = '<?php echo "
+PHP_SAPI : " . PHP_SAPI . "
+PHP_VERSION : " . phpversion() . "
+PHP_OS : " . PHP_OS . "
+INI actual : " . realpath(get_cfg_var("cfg_file_path")) . "
+More .INIs : " . str_replace("\n","", php_ini_scanned_files()); ?>';
+save_text($info_file, $php_info);
+$php_info = `$php -d 'output_handler=' -d 'zlib.output_compression=' $info_file`;
+@unlink($info_file);
+
// Write test context information.
echo "
=====================================================================
CWD : $cwd
-PHP : $php
-PHP_SAPI : " . PHP_SAPI . "
-PHP_VERSION : " . PHP_VERSION . "
-PHP_OS : " . PHP_OS . "
-INI actual : " . realpath(get_cfg_var('cfg_file_path')) . "
-More .INIs : " . str_replace("\n","", php_ini_scanned_files()) . "
+PHP : $php $php_info
Extra dirs : ";
foreach ($user_tests as $test_dir) {
echo "{$test_dir}\n ";