Bug #15723: dir->read() class/function fails when directory contains subdirectory '0'
| From: | php dot net at chiefworks dot com | Date: | Tue, 26 Feb 2002 05:30:26 +0000 |
| Subject: | Bug #15723: dir->read() class/function fails when directory contains subdirectory '0' | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-1045@lists.php.net to get a copy of this message | ||
From: php.net@chiefworks.com
Operating system: Linux 2.4
PHP version: 4.1.1
PHP Bug Type: Unknown/Other Function
Bug description: dir->read() class/function fails when directory contains subdirectory
'0'
$d = dir('.');
while ($entry = $d->read()) {
echo "$entry \n";
}
$d->close();
The above script works fine on mosth direcotries, but if the direcoty
contains a subdirectory "0", it stops as soon as it gets to it and only
outputs the . and .. entries.
Caleb
--
Edit bug report at http://bugs.php.net/?id=15723&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=15723&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=15723&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=15723&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=15723&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15723&r=support
Expected behavior: http://bugs.php.net/fix.php?id=15723&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15723&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15723&r=submittedtwice