note 18183 added to function.is-dir
| From: | bpang at bpang dot com | Date: | Sun, 13 Jan 2002 17:30:31 +0000 |
| Subject: | note 18183 added to function.is-dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24775@lists.php.net to get a copy of this message | ||
This no longer seems to work properly, nor is_file as of 4.1.1 on RedHat 7.0 with Apache 1.3.22.
When is_dir is attempted, files are returned true as well.
My workaround has been to attempt to open each $file returned from the readdir() using @opendir
(with @ to suppress errors).
If @opendir($file) returns true, I know it's a dir, otherwise, must be a file (or a link).
Perhaps there is something wrong with my config, but then again, maybe something changed?
is_dir used to work for me in 4.0.4
--
http://www.php.net/manual/en/function.is-dir.php
http://master.php.net/manage/user-notes.php?action=edit+18183
http://master.php.net/manage/user-notes.php?action=delete+18183
http://master.php.net/manage/user-notes.php?action=reject+18183