#48443 [Opn->Fbk]: is_readable returns false on a file which is readable for group
ID: 48443
Updated by: jani@php.net
Reported By: spam at noamik dot de
-Status: Open
+Status: Feedback
Bug Type: Filesystem function related
Operating System: Debian Lenny
PHP Version: 5.2.9
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-06-01 03:25:23] spam at noamik dot de
In actual result: it should read "is_readable returns *false*, but file
can be opened with fopen anyways ..."
------------------------------------------------------------------------
[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
Thread (3 messages)