Bug #15016 Updated: is_dir, is_file

From: Date: Wed, 13 Feb 2002 20:18:00 +0000
Subject: Bug #15016 Updated: is_dir, is_file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-271@lists.php.net to get a copy of this message
ID: 15016 Updated by: bpang@bpang.com Reported By: bpang@bpang.com -Status: Feedback +Status: Closed Bug Type: Strings related Operating System: RedHat 7.0 PHP Version: 4.1.1 New Comment: wouldn't ya know it! I can't reproduce it now go figure sorry, dang, really... it didn't work before.. I'll repost if I can make it happen again. Previous Comments: ------------------------------------------------------------------------ [2002-02-10 15:39:28] elixer@php.net Open -> Feedback ------------------------------------------------------------------------ [2002-02-10 15:39:13] elixer@php.net Could you please supply a short (self-contained) reproducing script? Sean ------------------------------------------------------------------------ [2002-01-13 12:35:21] bpang@bpang.com I also posted this as a note in the is_dir function reference. Configure Command: './configure' '--with-mysql' '--with-apxs' This (is_dir) 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15016&edit=1

« previous php.bugs (#271) next »