PHP 4.0 Bug #5262: Directory functions doesn´t work - somtimes

From: Date: Thu, 29 Jun 2000 14:19:23 +0000
Subject: PHP 4.0 Bug #5262: Directory functions doesn´t work - somtimes
Groups: php.dev 
Request: Send a blank email to php-dev+get-22629@lists.php.net to get a copy of this message
From: marten@jerbro.se Operating system: Linux - Debian Slink PHP version: 4.0 Latest CVS (29/06/2000) PHP Bug Type: Misbehaving function Bug description: Directory functions doesn´t work - somtimes Snippet: <? $dp = opendir('./'); while( ($file = readdir($dp)) ) echo $file.'<br>'; closedir($dp); ?> The snippet works with php4-200006262345 but breaks 19 times of 20 with later snapshots and outputs: Warning: 1 is not a valid Directory resource in /htdocs/development/t.php on line xxx Running Apache 1.3.12 and PHP configured with: ./configure \ --disable-debug \ --enable-inline-optimization \ --enable-track-vars \ --enable-calendar \ --enable-sysvsem \ --enable-sysvshm \ --enable-wddx \ --enable-ftp \ --without-gd \ --with-mm \ --with-imap \ --with-dbmaker=/home/dbmaker/3.6 \ --with-mhash \ --with-mcrypt \ --with-apxs=/usr/local/apache/bin/apxs

« previous php.dev (#22629) next »