]> granicus.if.org Git - php/commitdiff
fix problem in current HEAD
authorMarcus Boerger <helly@php.net>
Sun, 2 Mar 2003 15:12:12 +0000 (15:12 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 2 Mar 2003 15:12:12 +0000 (15:12 +0000)
# strange why on earth does $GLOBALS['cwd'] produce a warning here?
# however we already have a global declarations so we use it for cwd, too.

run-tests.php

index 1744e0a02a60f385294f2eed86d19d9f6a7dd241..5f3ec5b2757d34b2e45c928aa73d2ca54164c016 100755 (executable)
@@ -575,7 +575,7 @@ function system_with_timeout($commandline)
 
 function run_test($php,$file)
 {
-       global $log_format, $info_params, $ini_overwrites;
+       global $log_format, $info_params, $ini_overwrites, $cwd;
 
        if (DETAILED) echo "
 =================
@@ -608,7 +608,7 @@ TEST $file
        }
        fclose($fp);
 
-       $shortname = str_replace($GLOBALS['cwd'].'/', '', $file);
+       $shortname = str_replace($cwd.'/', '', $file);
        $tested = trim($section_text['TEST'])." [$shortname]";
 
        $tmp = realpath(dirname($file));