note 91313 rejected from function.readdir by danbrown
| From: | danbrown@php.net | Date: | Fri, 05 Jun 2009 13:49:47 +0000 |
| Subject: | note 91313 rejected from function.readdir by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156386@lists.php.net to get a copy of this message | ||
Note Submitter: peter dot mlich at volny dot cz
----
ERROR in example!!!
while ($file = readdir($handle)) {
echo "$file\n";
}
Work correctly, if you not create file or directory with name '0' (zero).
echo ('0'*1); //=0 not 1 as for 'a','b','9'