On Sun, 25 Jul 2004, Andi Gutmans wrote: > The time() call is part of the patch to check if we should refresh the > realpath cache for this specific path. If it becomes a problem then we > might need to think of a less deterministic approach where we call time() > only every few requests. Another idea I had was to call time() once at the > beginning of the request and always use the same one for reference. I don't > see any major problem with this as far as realpath is concerned. It might > even be useful in other places where not the exact time is needed but the > execution start time is good enough.
I meant to mention this a while ago, but it slipped my mind. Most web servers do that time() call for us at the beginning of the request because they need it for logging purposes. I think the right approach here is to add a SAPI call to expose this. For Apache-1.3 it is right in the request_rec in the request_time field. Obviously the SAPI call would simply do the time() call itself if it can't fetch it from somewhere internally. -Rasmus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php