ID: 10856
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Directory function related
Operating system:
PHP Version: 4.0.4pl1
Assigned To:
Comments:
Ok, I bumbed up the error level from E_NOTICE to E_WARNING.
Derick
Previous Comments:
---------------------------------------------------------------------------
[2001-05-14 14:18:56] [EMAIL PROTECTED]
Hello,
this is a little error in your logic,
$d->read() returns a string, and the is_dir() only checks in the _current_ directory
for that string.
Aparrantly you don't have (p.e.) bin in your current dir, so is_dir() failed on it.
I'm checking if I can make this a warning, but I'm closing this report now, because
it's not a bug.
Derick
---------------------------------------------------------------------------
[2001-05-14 14:04:48] [EMAIL PROTECTED]
$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();
}
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=10856&edit=2
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]