#10219 [Com]: the dir object created using dir() does not contain the last file in the dir

From: Date: Tue, 20 Jul 2004 15:00:18 +0000
Subject: #10219 [Com]: the dir object created using dir() does not contain the last file in the dir
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-62773@lists.php.net to get a copy of this message
ID: 10219 Comment by: video-erotic829 at hotmail dot com Reported By: gopinath at kasenna dot com Status: Closed Bug Type: Directory function related Operating System: Redhat Linux 7.1 PHP Version: 4.0.4pl1 New Comment: <a href=http://selfcovered-pee-fis.da.ru>erotic video</a> Previous Comments: ------------------------------------------------------------------------ [2001-04-09 19:59:42] sniper@php.net With a quick search on Google I found this: http://devrandom.net/lists/nfs/0249.html Which seems to suggest this is a bug in glibc. --Jani ------------------------------------------------------------------------ [2001-04-09 19:18:53] gopinath at kasenna dot com Here is the scenario that I have. I have an nfs mounted a filesystem on SGI Irix machne on to an redhat 7.1 machine. The error happens within this file system. I tried in different directories and got the same result and thought it to be a generic problem. It is not. It works just fine on the local file systems. I have tried on other remote mounted filesystems that are mounted from other linux machines and see no problems there either. (a diff between nfs2 and nfs3 possibly?) ------------------------------------------------------------------------ [2001-04-06 21:23:50] cnewbill@php.net Can't reproduce with CVS version, try it first and if this still continues reopen the report. http://snaps.php.net/ -Chris ------------------------------------------------------------------------ [2001-04-06 21:11:12] gopinath at kasenna dot com $d = dir("/etc"); echo "Handle: ".$d->handle."<br>\n"; echo "Path: ".$d->path."<br>\n"; while($entry=$d->read()) { echo $entry."<br>\n"; } $d->close(); It lists all but the last file in the directory. same result when I tried with opendir() and readdir() combination. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=10219&edit=1

« previous php.bugs (#62773) next »