Commit 01980786a3e for php
commit 01980786a3ec2c1a5997014047d139e1db192a59
Author: NickSdot <32384907+NickSdot@users.noreply.github.com>
Date: Wed Sep 30 18:22:20 2026 +0700
Excludes `.git` from `run-tests.php .` (#23542)
diff --git a/run-tests.php b/run-tests.php
index 8728c0d7524..b0645cbef0d 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -1100,7 +1100,7 @@ function find_files(string $dir, bool $is_ext_dir = false, bool $ignore = false)
$o = opendir($dir) or error("cannot open directory: $dir");
while (($name = readdir($o)) !== false) {
- if (is_dir("{$dir}/{$name}") && !in_array($name, ['.', '..', '.svn'])) {
+ if (is_dir("{$dir}/{$name}") && !in_array($name, ['.', '..', '.svn', '.git'])) {
$skip_ext = ($is_ext_dir && !in_array($name, $exts_to_test));
if ($skip_ext) {
$exts_skipped[] = $name;