|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-27 22:32 UTC] php at mike2k dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 00:00:02 2025 UTC |
Description: ------------ readdir() is working properly on other dirs, but on the dir with files "0" "1" "2" etc, it doesn't seem to find the files. the files have read permissions, as does the directory, there's no issues there. Reproduce code: --------------- $dir = "somedirectory/foo/bar"; if(is_dir($dir)) { $objdir = opendir($dir); while($file = readdir($objdir)) { var_dump($file); ... Expected result: ---------------- produces this: string(1) "." string(2) ".." Actual result: -------------- however there are 6 files in the directory with single integer values: linux01:~/data$ ls somedirectory/foo/bar 0 1 2 3 4 5 those are completely ignored it appears.