PHP 4.0 Bug #5455: readdir() still doesn't work

From: Date: Sat, 08 Jul 2000 09:53:29 +0000
Subject: PHP 4.0 Bug #5455: readdir() still doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-23788@lists.php.net to get a copy of this message
From: johan@ekenberg.se Operating system: Linux 2.2.14 PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: readdir() still doesn't work I still experience problems with readdir(), using Apache 1.3.12 and PHP 4.0.1pl2: The while loop exists at the first evaluation of the if-statement. If the if-statement is commented out, the code works. $dir = opendir("."); while ($file = readdir($dir)) { print "<br>$file"; if ($file == "foo") { // anything } } Config: PHP Version 4.0.1pl2 './configure' '--with-apache=../apache_1.3.12' '--with-mysql' '--with-gd' '--with-ttf' '--with-ftp' '--with-swf' '--with-mcrypt' '--with-mhash' '--with-xml' '--disable-posix-threads' '--enable-memory-limit=yes' '--enable-track-vars' '--enable-debug=no'

« previous php.dev (#23788) next »