PHP 4.0 Bug #5296: readdir function error

From: Date: Fri, 30 Jun 2000 22:34:17 +0000
Subject: PHP 4.0 Bug #5296: readdir function error
Groups: php.dev 
Request: Send a blank email to php-dev+get-22986@lists.php.net to get a copy of this message
From: eunjea@kldp.org Operating system: linux PHP version: 4.0.1 PHP Bug Type: Misbehaving function Bug description: readdir function error <?php $handle=opendir('.'); while ($file = readdir($handle)) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle); ?> This script the same one from php manual. in php 4.0 It's was ok. but in php 4.0.1, sometimes show following messages. 1 is not a valid Directory resource in /home/silver/public_html/readdir.php3 on line 5

« previous php.dev (#22986) next »