PHP 4.3.10_2 readdir() misses files

Devon H. O'Dell dodell at sitetronics.com
Mon Feb 7 12:29:52 PST 2005


On Mon, 2005-02-07 at 20:27 +0100, Joerg Anslik wrote:
> <?php
> if(($dh = @opendir("/tmp/phptest")) == false) {
> 
>         print "No such dir!\n";
>         
>         exit;
> }
> 
> while($entry = readdir($dh)) {
> 
>         print "[$entry]\n";
> }
> 
> closedir($dh);
> ?>

With the latest current ISO, I also experience this behavior. I will
take a closer look at it tomorrow.

--Devon






More information about the Users mailing list