#23722 [NEW]: with dir() is_file() return always false ...
| From: | ca533512 at tiscali dot cz | Date: | Tue, 20 May 2003 18:30:47 +0000 |
| Subject: | #23722 [NEW]: with dir() is_file() return always false ... | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-40081@lists.php.net to get a copy of this message | ||
From: ca533512 at tiscali dot cz
Operating system: win2k SP3
PHP version: 4.3.2RC3
PHP Bug Type: *Directory/Filesystem functions
Bug description: with dir() is_file() return always false ...
I want to read a dir with dir() function and dir to open is like
"images/php" then is_file() function doesn't working correctly ... (return
false or NULL)
code:
$d = dir("images/php");
while ($file = $d -> read()) {
if (is_file($file)) { // <- this line always return false
...
}
}
when i use chdir() function to change directory, all working correctly
...
Must I use chdir() func. ???
is this a regular feature ???
jenik
--
Edit bug report at http://bugs.php.net/?id=23722&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23722&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23722&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23722&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23722&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23722&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23722&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23722&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23722&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23722&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23722&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23722&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23722&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23722&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23722&r=gnused