[PHP-DEV] Bug #3699 Updated: function readdir() error From: Bug Database (php-dev <email protected>)
Date: 05/22/00

ID: 3699
Updated by: hholzgra
Reported By: xutian <email protected>
Status: Closed
Bug Type: Parser error
Assigned To:
Comments:

yes, "0" evaluates to false so the loop is terminated

try

while (""!=($file = readdir($handle)))

instead, that will do

(bug closed until someone comes up with a filesystem
where a filename may be all empty)

Full Bug description available at: http://bugs.php.net/?id=3699

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>