Bug #10856: is_dir() does only recognize . and .. as directory, nothing else
| From: | marc at links2linux dot de | Date: | Mon, 14 May 2001 18:04:48 +0000 |
| Subject: | Bug #10856: is_dir() does only recognize . and .. as directory, nothing else | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55205@lists.php.net to get a copy of this message | ||
From: marc@links2linux.de
Operating system: Linux
PHP version: 4.0.4pl1
PHP Bug Type: Directory function related
Bug description: is_dir() does only recognize . and .. as directory, nothing else
$d = dir("/");
echo "Handle: ".$d->handle."<br>\n";
echo "Path: ".$d->path."<br>\n";
while($entry=$d->read()) {
if (is_dir($entry)) echo "[DIR]";
echo $entry."<br>\n";
}
$d->close();
}
--
Edit Bug report at: http://bugs.php.net/?id=10856&edit=1