From: Johannes Schlüter Date: Thu, 1 Sep 2011 14:52:55 +0000 (+0000) Subject: Improve speed of finding tests (no more CVS, we're on svn now) X-Git-Tag: php-5.5.0alpha1~1385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=781db10c48ae2184d3c3880eed74e38baeb20545;p=php Improve speed of finding tests (no more CVS, we're on svn now) --- diff --git a/run-tests.php b/run-tests.php index 2b584e49c6..84cf6e8e2d 100755 --- a/run-tests.php +++ b/run-tests.php @@ -866,7 +866,7 @@ function find_files($dir, $is_ext_dir = false, $ignore = false) while (($name = readdir($o)) !== false) { - if (is_dir("{$dir}/{$name}") && !in_array($name, array('.', '..', 'CVS'))) { + if (is_dir("{$dir}/{$name}") && !in_array($name, array('.', '..', '.svn'))) { $skip_ext = ($is_ext_dir && !in_array(strtolower($name), $exts_to_test)); if ($skip_ext) { $exts_skipped++; @@ -1239,7 +1239,7 @@ TEST $file } // Match the beginning of a section. - if (preg_match(b'/^--([_A-Z]+)--/', $line, $r)) { + if (preg_match('/^--([_A-Z]+)--/', $line, $r)) { $section = $r[1]; settype($section, STRING_TYPE);