helly Wed Oct 30 05:42:55 2002 EDT
Modified files:
/php4 run-tests.php
Log:
Get infos from php running tests not from php running run-test.php
Index: php4/run-tests.php
diff -u php4/run-tests.php:1.99 php4/run-tests.php:1.100
--- php4/run-tests.php:1.99 Tue Oct 29 09:13:11 2002
+++ php4/run-tests.php Wed Oct 30 05:42:55 2002
@@ -96,17 +96,25 @@
$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 ";
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php