PHP 4.0 Bug #5693: is_dir, is_file and filetype do not work

From: Date: Thu, 20 Jul 2000 11:10:15 +0000
Subject: PHP 4.0 Bug #5693: is_dir, is_file and filetype do not work
Groups: php.dev 
Request: Send a blank email to php-dev+get-25203@lists.php.net to get a copy of this message
From: mclion@obala.net Operating system: Win32/Unix PHP version: 4.0.1pl2 PHP Bug Type: Misbehaving function Bug description: is_dir, is_file and filetype do not work is_dir returns dir only for "." and ".." directories in a tree, is_file returns true even for directories and filetype returns void for directories. $handle=opendir("."); while($file = readdir($handle)) { if(is_dir($file)) { echo "dir = $file"; } else { echo "file = $file"; }

« previous php.dev (#25203) next »