On 11/25/10 11:01 AM, Pierre Joye wrote:
> I noticed it where functions accepts a path, do some checks (exists,
> writable, etc.), resolves paths, etc. and then similar ops are done
> again in a couple of places  before we call the low level functions,
> like in stream, tsrm for example, or extension using other extension's
> streams.
> 
> The idea is that file.absolute_path, file.original_path, or
> file.resolved_path (example member names) will be passed to the low
> level APIs, where each of them have been checked for NULL as well.

Do you have an example?  Also, these checks are going to hit the stat
cache, so I don't think there is much to gain here.

-R

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to