From: Lars Strojny Date: Wed, 5 Mar 2008 20:10:12 +0000 (+0000) Subject: Using new magic constant __DIR__ in run-tests.php X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~693 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da494df864865d5d3b31ba5af3e4c90fca420ab3;p=php Using new magic constant __DIR__ in run-tests.php --- diff --git a/run-tests.php b/run-tests.php index 3f96c0107f..9490406913 100755 --- a/run-tests.php +++ b/run-tests.php @@ -198,7 +198,7 @@ function write_information($show_html) global $cwd, $php, $php_cgi, $php_info, $user_tests, $ini_overwrites, $pass_options, $exts_to_test, $leak_check, $valgrind_header; // Get info from php - $info_file = realpath(dirname(__FILE__)) . '/run-test-info.php'; + $info_file = __DIR__ . '/run-test-info.php'; @unlink($info_file); $php_info = '