Bug #2125 Updated: function dir, readdir does not list files/dirs named "0" (zero))
| From: | Bug Database | Date: | Sun, 22 Aug 1999 23:40:45 +0000 |
| Subject: | Bug #2125 Updated: function dir, readdir does not list files/dirs named "0" (zero)) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10086@lists.php.net to get a copy of this message | ||
ID: 2125
Updated by: rasmus
Reported By: ivelin@iname.com
Status: Closed
Bug Type: Other
Assigned To:
Comments:
Not really a bug. Your while loop evaluates to while(0). If you change it
to this:
while(strlen(readdir($dh))
it should work fine.
Full Bug description available at: http://bugs.php.net/?id=2125