[PHP-CVS] [php-src] master: Run scandir overflow test on Windows only (#22934)
[email protected] (NickSdot via GitHub) Thu, 30 Jul 2026 13:44:10 +0000
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: NickSdot (NickSdot)
Committer: GitHub (web-flow)
Pusher: arnaud-lb
Date: 2026-07-30T15:44:07+02:00
Commit: https://github.com/php/php-src/commit/955e2ea14b09681dc84f6a6a5f8dadff857ddf08
Raw diff: https://github.com/php/php-src/commit/955e2ea14b09681dc84f6a6a5f8dadff857ddf08.diff
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.
Changed paths:
M ext/standard/tests/file/bug36365.phpt
Diff:
diff --git a/ext/standard/tests/file/bug36365.phpt b/ext/standard/tests/file/bug36365.phpt
index be1a6c516555..c3aeb8045d6e 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--