#19725 [Fbk->Csd]: is_readable return false but file is readable

From: Date: Thu, 03 Oct 2002 22:06:14 +0000
Subject: #19725 [Fbk->Csd]: is_readable return false but file is readable
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-21412@lists.php.net to get a copy of this message
ID: 19725 User updated by: regisr@regix.com Reported By: regisr@regix.com -Status: Feedback +Status: Closed Bug Type: Directory function related Operating System: FreeBSD 4.7-RC1 PHP Version: 4.2.3 New Comment: solved with php4-200210021500 snapshot. Previous Comments: ------------------------------------------------------------------------ [2002-10-02 17:07:20] sniper@php.net 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 ------------------------------------------------------------------------ [2002-10-02 16:40:49] regisr@regix.com 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

« previous php.bugs (#21412) next »