#48443 [Opn]: is_readable returns false on a file which is readable for group

From: Date: Mon, 01 Jun 2009 03:25:24 +0000
Subject: #48443 [Opn]: is_readable returns false on a file which is readable for group
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-137931@lists.php.net to get a copy of this message
ID: 48443 User updated by: spam at noamik dot de Reported By: spam at noamik dot de Status: Open Bug Type: Filesystem function related Operating System: Debian Lenny PHP Version: 5.2.9 New Comment: In actual result: it should read "is_readable returns *false*, but file can be opened with fopen anyways ..." Previous Comments: ------------------------------------------------------------------------ [2009-06-01 02:51:52] spam at noamik dot de Description: ------------ When executing is_readable("/path/to/my/file.txt") the function returns false, even so file permissions are as follows: -rw-rw---- 1 someuser www-data 1529 2009-06-01 04:28 file.txt where www-data is a group the web server executing the script is member of. To eliminate caching issues, clearstatcache(); has been executed before. The same goes for is_writable. I'm not shure if it is intended or a bug, but if it is intended, the documentation would be wrong (at least IMHO). If it is intended, a similar function for group rights would be needed ... Reproduce code: --------------- --- From manual page: function.is-readable --- Expected result: ---------------- In the above example, is_readable should return true ... Actual result: -------------- is_readable returns true, but file can be opened with fopen anyways ... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48443&edit=1

« previous php.bugs (#137931) next »