Commit 955e2ea14b0 for php.net
commit 955e2ea14b09681dc84f6a6a5f8dadff857ddf08
Author: NickSdot <32384907+NickSdot@users.noreply.github.com>
Date: Thu Jul 30 20:44:07 2026 +0700
Run scandir overflow test on Windows only (#22934)
Avoids creating 70,000 files on platforms unaffected by the Win32 DIR_W32.offset regression. Shaves ~9s off non-Windows test runs.
diff --git a/ext/standard/tests/file/bug36365.phpt b/ext/standard/tests/file/bug36365.phpt
index be1a6c51655..c3aeb8045d6 100644
--- a/ext/standard/tests/file/bug36365.phpt
+++ b/ext/standard/tests/file/bug36365.phpt
@@ -2,6 +2,7 @@
Bug #36365 (scandir duplicates file name at every 65535th file)
--SKIPIF--
<?php
+if (PHP_OS_FAMILY !== 'Windows') die('skip Windows only');
if (getenv("SKIP_SLOW_TESTS")) die('skip slow test');
?>
--FILE--