is_*able() implementation

From: Date: Fri, 17 Mar 2000 11:09:45 +0000
Subject: is_*able() implementation
Groups: php.dev 
Request: Send a blank email to php-dev+get-16936@lists.php.net to get a copy of this message
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.

« previous php.dev (#16936) next »