[php-src] master: Excludes `.git` from `run-tests.php .` (#23542)
| From: | NickSdot via GitHub | Date: | Wed, 30 Sep 2026 11:22:23 +0000 |
| Subject: | [php-src] master: Excludes `.git` from `run-tests.php .` (#23542) | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141764@lists.php.net to get a copy of this message | ||
Author: NickSdot (NickSdot)
Committer: GitHub (web-flow)
Pusher: arnaud-lb
Date: 2026-09-30T13:22:20+02:00
Commit: https://github.com/php/php-src/commit/01980786a3ec2c1a5997014047d139e1db192a59
Raw diff: https://github.com/php/php-src/commit/01980786a3ec2c1a5997014047d139e1db192a59.diff
Excludes
.git from run-tests.php . (#23542)
Changed paths:
M run-tests.php
Diff:
diff --git a/run-tests.php b/run-tests.php
index 8728c0d7524b..b0645cbef0d2 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;