[PHP-DEV] is_*able() implementation From: Flavien LEBARBE (flebarbe <email protected>)
Date: 03/17/00

Hi,

I have a thought while looking at the recent patches for
functions is_readable & friends.
Right now, is_*able rely on pure_unix access rights and don't
check for ACL or anything. And checking on other platforms
has to somehow emulate unix permissions (look at Win32 defines).

What about using access() instead ? We could cache the results
for efficiency exactly as we do right now, rely on access() for
the checks, and don't worry about bit-masking, group lists,
root can do this, and so on, anymore ! :-)

Implementing access() on platforms that don't have it should be
easier than trying to emulate unix permissions, don't you think
so ?

Has this issue already been discussed on this list and eliminated
for a reason or another (didn't find anything on this subject in
the archives.) ?

Flavien Lebarbé

---
Open Care.

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>