PHP 4.0 Bug #8823 Updated: readdir doesn't return directories starting with a digit
| From: | rasmus@php.net | Date: | Sat, 20 Jan 2001 21:28:21 +0000 |
| Subject: | PHP 4.0 Bug #8823 Updated: readdir doesn't return directories starting with a digit | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44648@lists.php.net to get a copy of this message | ||
ID: 8823
Updated by: rasmus
Reported By: vahan@design.am
Old-Status: Duplicate
Status: Closed
Bug Type: Directory function related
Assigned To:
Comments:
See #8822
Previous Comments:
---------------------------------------------------------------------------
[2001-01-20 16:27:13] elixer@php.net
Bug submitted twice. Marking this one as a duplicate.
---------------------------------------------------------------------------
[2001-01-20 16:07:41] vahan@design.am
function dir_list($dirname)
{
if($dirname[strlen($dirname)-1]!='/')
$dirname.='/';
$handle=opendir($dirname);
while ($file = readdir($handle))
{
if($file=='.'||$file=='..') continue;
$result_array[]=$dirname.$file;
}
closedir($handle);
return $result_array;
};
executed for a directory which has subdirectory that has a digit/special character as a first
character of it's name,
then that subdirectory won't be included in the $result_array
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8823