Bug #17610: listing file with readdir
| From: | sfarran at centrimage dot com | Date: | Wed, 05 Jun 2002 12:28:17 +0000 |
| Subject: | Bug #17610: listing file with readdir | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-9537@lists.php.net to get a copy of this message | ||
From: sfarran@centrimage.com
Operating system: linux mandrake 8.1
PHP version: 4.1.2
PHP Bug Type: Filesystem function related
Bug description: listing file with readdir
When I do a readdir in a directory, Php forget some files
My directory have about 3000 files
size of files: 1.4Mo
type: sgi (pictures)
name of files: quad.xxxx.sgi (xxxx is a number, ie 0001)
I've done tests on this directory, and listed files are never the same.
Sometimes, Php forget files, but forgotten files are not the same one time
to another.
Is there limits on the use if readir function?
my code for listing files is:
$directory_src = @opendir("/tmp");
while($iden_dir = @readdir($directory_src))
{
echo "$iden_dir<BR>";
}
@closedir($directory_src);
--
Edit bug report at http://bugs.php.net/?id=17610&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17610&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17610&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17610&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17610&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17610&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17610&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17610&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17610&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17610&r=globals