]> granicus.if.org Git - php/commitdiff
MFH
authorMarcus Boerger <helly@php.net>
Sat, 23 Nov 2002 17:50:37 +0000 (17:50 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 23 Nov 2002 17:50:37 +0000 (17:50 +0000)
#This includes the " to ' change but not the added settings which 4.3
#doesn't have.

run-tests.php

index 4dced679fb475ff116685929ede313d250b200f1..fc77c1a2caa39e1cf086062e3b4f41560d407ca5 100755 (executable)
@@ -123,10 +123,10 @@ $ini_overwrites = array(
                'html_errors=0',
                'track_errors=1',
                'report_memleaks=1',
-               "docref_root=/phpmanual/",
-               "docref_ext=.html",
-               "error_prepend_string=",
-               "error_append_string=",
+               'docref_root=/phpmanual/',
+               'docref_ext=.html',
+               'error_prepend_string=',
+               'error_append_string=',
                'auto_prepend_file=',
                'auto_append_file=',
                'magic_quotes_runtime=0',
@@ -235,12 +235,12 @@ function find_files($dir,$is_ext_dir=FALSE,$ignore=FALSE)
 function test_sort($a, $b) {
        global $cwd;
 
-       $ta = strpos($a, "{$cwd}/tests/run-test")===0 ? 1 : 0;
-       $tb = strpos($b, "{$cwd}/tests/run-test")===0 ? 1 : 0;
+       $ta = strpos($a, "{$cwd}/tests")===0 ? 1 + (strpos($a, "{$cwd}/tests/run-test")===0 ? 1 : 0) : 0;
+       $tb = strpos($b, "{$cwd}/tests")===0 ? 1 + (strpos($b, "{$cwd}/tests/run-test")===0 ? 1 : 0) : 0;
        if ($ta == $tb) {
                return strcmp($a, $b);
        } else {
-               return $ta ? -1 : +1;
+               return $tb - $ta;
        }
 }