Bug #15621 Updated: directory with name '0' isn't listed

From: Date: Tue, 19 Feb 2002 14:22:59 +0000
Subject: Bug #15621 Updated: directory with name '0' isn't listed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-581@lists.php.net to get a copy of this message
ID: 15621 Updated by: eru@php.net -Summary: directory with name '0' isn't listed Reported By: chocobot@gmx.de -Status: Open +Status: Bogus Bug Type: Directory function related Operating System: Linux Redhat PHP Version: 4.1.1 New Comment: This is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You should use while (false !== ($file = readdir ($handle))) Previous Comments: ------------------------------------------------------------------------ [2002-02-19 09:10:54] chocobot@gmx.de i have a directory containing other directories, including one named '0'. I try to use "while ($file = readdir($handle))" to go throug all entries, but none get listed! As soon as i rename that dir to something else, it works as expected. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15621&edit=1

« previous php.bugs (#581) next »