PHP 4.0 Bug #5867 Updated: traversing directory is somewhat tricky
| From: | Bug Database | Date: | Mon, 31 Jul 2000 10:10:43 +0000 |
| Subject: | PHP 4.0 Bug #5867 Updated: traversing directory is somewhat tricky | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27012@lists.php.net to get a copy of this message | ||
ID: 5867
Updated by: stas
Reported By: pasha@zend.com
Status: Analyzed
Bug Type: Documentation problem
Assigned To:
Comments:
It is not misbehaving function, it is wrong manual example.
Should be something like:
while (($file = readdir($d)) !== false)
I'd also propose not to convert "0" to false, only '0'.
Full Bug description available at: http://bugs.php.net/?id=5867