ID: 10856 Updated by: derick Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Bogus Bug Type: Directory function related Operating system: PHP Version: 4.0.4pl1 Assigned To: Comments: 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 Previous Comments: --------------------------------------------------------------------------- [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]