From: Lars Strojny Date: Wed, 5 Mar 2008 20:11:35 +0000 (+0000) Subject: Using new magic constant __DIR__ in run-tests.php X-Git-Tag: RELEASE_2_0_0a1~244 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9a3da88392a0aee897c48ca974a33b0a0df1a2c;p=php Using new magic constant __DIR__ in run-tests.php --- diff --git a/run-tests.php b/run-tests.php index 50506fc448..810974394a 100755 --- a/run-tests.php +++ b/run-tests.php @@ -186,7 +186,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 = '