PHP 4.0 Bug #3753 Updated: is_readable() broken
| From: | Bug Database | Date: | Wed, 08 Mar 2000 00:44:10 +0000 |
| Subject: | PHP 4.0 Bug #3753 Updated: is_readable() broken | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-16521@lists.php.net to get a copy of this message | ||
ID: 3753
Updated by: hholzgra
Reported By: ajung@suxers.de
Status: Analyzed
Bug Type: Misbehaving function
Assigned To:
Comments:
this one applies to is_writable() and is_executable()
as well
they only check the owner bits and so return if the
_owner_ of the file is allowed to read, write or
execute it, not the user the current process is running as
i'll give it a short round tonight, making it compare
file owner and group to process owner and group
and use the right bits accordingly,
but that won't be perfect because a user may be in more
than one group
have to check how kernel and the groups command
figure this out ...
Full Bug description available at: http://bugs.php.net/?id=3753