PHP 4.0 Bug #5867 Updated: traversing directory is somewhat tricky
| From: | Bug Database | Date: | Mon, 31 Jul 2000 10:08:22 +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-27011@lists.php.net to get a copy of this message | ||
ID: 5867
Updated by: waldschrott
Reported By: pasha@zend.com
Status: Closed
Bug Type: Misbehaving function
Assigned To:
Comments:
You´re wrong. That is how autoconversion works.
You´ve to use
while (($file=readdir($d))!==FALSE) ...
That´s no ugly workaround and catches all cases. If it was a
bug it was "Scripting engine problem" (not "Misbehaving
function", but this documented in some places thus I´m
unsure if we can make it a "Documentation problem".
Thus closed, although it could be pointed out more clearly
(I think it is mentioned at the strpos() documentation)
Full Bug description available at: http://bugs.php.net/?id=5867