diff options
author | Lars Strojny <lstrojny@php.net> | 2008-03-05 20:11:35 +0000 |
---|---|---|
committer | Lars Strojny <lstrojny@php.net> | 2008-03-05 20:11:35 +0000 |
commit | b9a3da88392a0aee897c48ca974a33b0a0df1a2c (patch) | |
tree | ed01f6af71a76feba744102b5cb53300bf6876bd | |
parent | d6aacd5eb6be5580fd21403d2262af55b933fd2b (diff) | |
download | php-git-b9a3da88392a0aee897c48ca974a33b0a0df1a2c.tar.gz |
Using new magic constant __DIR__ in run-tests.php
-rwxr-xr-x | run-tests.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 = '<?php echo " PHP_SAPI : " , PHP_SAPI , " @@ -782,7 +782,7 @@ if ($just_save_results || !getenv('NO_INTERACTION')) { $libtool = shell_exec($CUR_DIR . '/libtool --version'); /* Use shtool to find out if there is glibtool present (MacOSX) */ - $sys_libtool_path = shell_exec(dirname(__FILE__) . '/build/shtool path glibtool libtool'); + $sys_libtool_path = shell_exec(__DIR__ . '/build/shtool path glibtool libtool'); if ($sys_libtool_path) { $sys_libtool = shell_exec(str_replace("\n", "", $sys_libtool_path) . ' --version'); } @@ -1209,7 +1209,7 @@ TEST $file $temp_clean = $temp_dir . DIRECTORY_SEPARATOR . basename($file,'phpt').$pu.'clean.php'; $test_clean = $test_dir . DIRECTORY_SEPARATOR . basename($file,'phpt').$pu.'clean.php'; $tmp_post = $temp_dir . DIRECTORY_SEPARATOR . uniqid('/phpt.'); - $tmp_relative_file = str_replace(dirname(__FILE__).DIRECTORY_SEPARATOR, '', $test_file) . 't'; + $tmp_relative_file = str_replace(__DIR__ . DIRECTORY_SEPARATOR, '', $test_file) . 't'; if ($temp_source && $temp_target) { $temp_skipif .= 's'; |