ID:               19725
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Directory function related
 Operating System: FreeBSD 4.7-RC1
 PHP Version:      4.2.3
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


Previous Comments:
------------------------------------------------------------------------

[2002-10-02 16:40:49] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=19725&edit=1

Reply via email to