Bug #14062: Wrong filetype displayed

From: Date: Wed, 14 Nov 2001 22:04:44 +0000
Subject: Bug #14062: Wrong filetype displayed
Groups: php.dev 
Request: Send a blank email to php-dev+get-70489@lists.php.net to get a copy of this message
From: corwin1974@yahoo.fr Operating system: win98SE PHP version: 4.0.6 PHP Bug Type: *Directory/Filesystem functions Bug description: Wrong filetype displayed When running this script : <? $d = "/fichiers"; // dir to show $h = opendir($d); while($e = readdir($h)) { echo filetype("$d/$e"); echo "<br>\n"; } closedir($h); ?> the wrong filetype is displayed (files and directories are displayed as directories), except when the script is run in the current (.) directory -- Edit bug report at: http://bugs.php.net/?id=14062&edit=1

« previous php.dev (#70489) next »