|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-06-01 03:25 UTC] spam at noamik dot de
[2009-06-01 09:05 UTC] jani@php.net
[2009-06-09 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 09:00:01 2025 UTC |
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 ...