PHP 4.0 Bug #5306: opendir / readdir bug after second time running

From: Date: Sat, 01 Jul 2000 11:54:30 +0000
Subject: PHP 4.0 Bug #5306: opendir / readdir bug after second time running
Groups: php.dev 
Request: Send a blank email to php-dev+get-23027@lists.php.net to get a copy of this message
From: kemal@clic.nl Operating system: NT PHP version: 4.0.1 PHP Bug Type: Misbehaving function Bug description: opendir / readdir bug after second time running <?php /* try this under PHP 4.01 on Windows NT4 (SP6) */ $dir_name = '.'; $h = opendir($dir_name); while ($fname = readdir($h)) { if ($fname != "." && $fname != "..") { echo "<br>", $fname, "\n"; } } closedir($h); ?>

« previous php.dev (#23027) next »