ID:               15464
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Critical
-Bug Type:         Directory function related
+Bug Type:         *Directory/Filesystem functions
 Operating System: linux
 PHP Version:      4.1.0
 New Comment:

Reproduced. There is something really strange going on...
Anyway, create a file or directory 0 and a couple of other (both
numeric and non-numeric) files and/or directories.

Sometimes it doesn't display any file starting with a number if there's
a file called 0. The 0 never shows up.

(tested with a recent 4.2.0-dev)


Previous Comments:
------------------------------------------------------------------------

[2002-02-09 07:58:54] [EMAIL PROTECTED]

Their is a bug when using readdir function with a directory 
named 0 is in the list.
Exemple :
Directory /home/www/perso

/home/www/perso/0 * 0 is a directory
/home/www/perso/1 * 1 is a directory
/home/www/perso/2 * 2 is a directory

The code :

        $ptr=opendir("/home/www/perso");
        while($fichier=readdir($ptr))
                echo "$fichier\n";
        closedir($ptr);

should be return :
.
..
0
1
2

however, it return only :
.
..

Cause of there is a directory named 0 in the structure.

Friendly,
Laurent

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15464&edit=1

Reply via email to