From 4855a3ba08f9cfcfc0c84c239722375e8e6358ef Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Wed, 7 Dec 2005 09:06:30 +0000 Subject: [PATCH] Fixed incorrect basename() usage --- run-tests.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run-tests.php b/run-tests.php index 758b8569d1..52eb4c9684 100755 --- a/run-tests.php +++ b/run-tests.php @@ -939,13 +939,13 @@ TEST $file $pu = $unicode_semantics ? 'u.' : ''; - $diff_filename = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'diff'; - $log_filename = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'log'; - $exp_filename = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'exp'; - $output_filename = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'out'; - $memcheck_filename = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'mem'; - $tmp_file = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'php'; - $tmp_skipif = $tmp . DIRECTORY_SEPARATOR . basename($file).$pu.'skip'; + $diff_filename = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").$pu.'diff'; + $log_filename = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").$pu.'log'; + $exp_filename = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").$pu.'exp'; + $output_filename = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").$pu.'out'; + $memcheck_filename = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").$pu.'mem'; + $tmp_file = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").'php'; + $tmp_skipif = $tmp . DIRECTORY_SEPARATOR . basename($file,"phpt").$pu.'skip'; $tmp_post = $tmp . DIRECTORY_SEPARATOR . uniqid('/phpt.'); $tmp_relative_file = str_replace(dirname(__FILE__).DIRECTORY_SEPARATOR, '', $tmp_file) . 't'; -- 2.40.0