Bug #15464: readdir function bug with 0 name directory

From: Date: Sat, 09 Feb 2002 12:58:55 +0000
Subject: Bug #15464: readdir function bug with 0 name directory
Groups: php.dev 
Request: Send a blank email to php-dev+get-79814@lists.php.net to get a copy of this message
From: laurent.colson@freesbee.fr Operating system: linux PHP version: 4.1.0 PHP Bug Type: Directory function related Bug description: readdir function bug with 0 name directory 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 bug report at http://bugs.php.net/?id=15464&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=15464&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=15464&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=15464&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=15464&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=15464&r=support Expected behavior: http://bugs.php.net/fix.php?id=15464&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=15464&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=15464&r=submittedtwice

« previous php.dev (#79814) next »