From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.7-RC1
PHP version: 4.2.3
PHP Bug Type: Directory function related
Bug description: is_readable return false but file is readable
The is_readable() does not return true but the file is readable (and
reading is done...)
It is not a link (there is a reported bug about it on FreeBSD) but a plain
file (rw-r--r--) and the directory is readable and searchable (rwxrwxrwx)
My code:
if (is_readable("book.lst")) {
$conf_fic = file ("book.lst");
$nb_photos = count($conf_fic);
}
else {
print("error<br>");
$conf_fic = file ("book.lst");
$nb_photos = count($conf_fic);
}
Every time I have the error message but the file is read.
I tried also 'if (is_readable("book.lst") == TRUE)' ...
(If it is a known FreeBSD bug I can't locate it: please give the bug
report number).
The test was Ok in previous versions.
--
Edit bug report at http://bugs.php.net/?id=19725&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19725&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19725&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19725&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19725&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19725&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19725&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19725&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19725&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19725&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19725&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19725&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19725&r=dst