Bug #36365 [ReO->Csd]: scandir duplicates file name at every 65535th file

From: Date: Fri, 24 Apr 2020 07:48:05 +0000
Subject: Bug #36365 [ReO->Csd]: scandir duplicates file name at every 65535th file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226752@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=36365&edit=1 ID: 36365 Updated by: cmb@php.net Reported by: pilhoon at gmail dot com Summary: scandir duplicates file name at every 65535th file -Status: Re-Opened +Status: Closed Type: Bug Package: Directory function related Operating System: Windows only PHP Version: * Assigned To: cmb Block user comment: N Private report: N New Comment: Automatic comment on behalf of cmbecker69@gmx.de Revision: http://git.php.net/?p=php-src.git;a=commit;h=767a77ac19af1192aa8b674d62f75b08abb199d6 Log: Fix #36365: scandir duplicates file name at every 65535th file Previous Comments: ------------------------------------------------------------------------ [2020-04-23 15:08:46] cmb@php.net The following pull request has been associated: Patch Name: Fix #36365: scandir duplicates file name at every 65535th file On GitHub: https://github.com/php/php-src/pull/5439 Patch: https://github.com/php/php-src/pull/5439.patch ------------------------------------------------------------------------ [2020-04-23 09:38:04] cmb@php.net Unfortunately, this cannot be fixed in a PHP revision, because it requires to change the definition of struct DIR_W32[1], what would constitute an ABI break. I'll check whether a test would be viable (it'll likely be very slow). [1] <https://github.com/php/php-src/blob/php-7.4.5/win32/readdir.h#L27-L34> ------------------------------------------------------------------------ [2020-04-23 08:51:53] michael dot vorisek at email dot cz Any progress on this and can this be added to tests when run on Windows? ------------------------------------------------------------------------ [2019-10-15 07:54:55] cmb@php.net Re-opening, since this issue has been re-introduced by commit 758af77[1] affecting PHP 7.2 and up. [1] <http://git.php.net/?p=php-src.git;a=commit;h=758af77e9d1c3c6e5aea365bc0d35c385278ad5a> ------------------------------------------------------------------------ [2016-07-20 11:37:22] davey@php.net Automatic comment on behalf of cmb Revision: http://git.php.net/?p=php-src.git;a=commit;h=4e8f01cb6e75e09ad7ffa5201c42d1bea2a61264 Log: Fix #36365: scandir duplicates file name at every 65535th file ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=36365 -- Edit this bug report at https://bugs.php.net/bug.php?id=36365&edit=1

« previous php.bugs (#226752) next »