ID: 22499
Updated by: [EMAIL PROTECTED]
Reported By: itamarc at rogers dot com
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: windows xp
PHP Version: 4.3.1
New Comment:
Yes, you said that already.
Let's see the script you used which exposes this bug.
For example - this works for me, using 4.3.1 on Windows 2k with
apache:
<?php
header('Content-Type: text/plain');
$dir = opendir('.');
while($entry = readdir($dir))
{
if(is_dir($entry))
echo "$entry is a dir\n";
else
echo "$entry is NOT a dir\n";
}
?>
Previous Comments:
------------------------------------------------------------------------
[2003-03-02 11:50:18] itamarc at rogers dot com
the is_dir is supposed to come back true if reading a directory and
false if not. it doesn't. it always comes back false.
if used as (not)!is_dir then it works right most of the time but still
give the wrong answer for some directories.
------------------------------------------------------------------------
[2003-03-02 05:00:20] [EMAIL PROTECTED]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
Let's see an example script, along with a directory listing. Keep it
short please.
------------------------------------------------------------------------
[2003-03-01 18:00:30] itamarc at rogers dot com
is_dir doesn't work unless I use it as !is_dir and even then a few
directories are still read as files.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22499&edit=1