From:             spam at noamik dot de
Operating system: Debian Lenny
PHP version:      5.2.9
PHP Bug Type:     Filesystem function related
Bug description:  is_readable returns false on a file which is readable for 
group

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 bug report at http://bugs.php.net/?id=48443&edit=1
-- 
Try a CVS snapshot (PHP 5.2):        
http://bugs.php.net/fix.php?id=48443&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):        
http://bugs.php.net/fix.php?id=48443&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):        
http://bugs.php.net/fix.php?id=48443&r=trysnapshot60
Fixed in CVS:                        
http://bugs.php.net/fix.php?id=48443&r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48443&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=48443&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=48443&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=48443&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=48443&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=48443&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=48443&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=48443&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=48443&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=48443&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=48443&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=48443&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=48443&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=48443&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=48443&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=48443&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=48443&r=mysqlcfg

Reply via email to