On Fri, 6 Aug 2004, Andi Gutmans wrote:
> If you call it get_request_start_time() it should make it clearer what it
> means.
> I guess we could put it into SAPI I don't see any disadvantage although in
> any case, doing it one more time per-request wouldn't be that bad either.
> I hope to have more time towards the end of next week and then I can
> hopefully make this improvement.

Sure, it's a single syscall, but this entire effort is about removing
syscalls, so adding one that isn't necessary because it has already been
done during the request makes sense.

I am just cleaning up some other code where a sapi call for this would
make things a lot cleaner.  Without the sapi call you end up needing to do
this:

#if HAVE_APACHE
 #include "httpd.h"
#endif
...
#if HAVE_APACHE
    t = ((request_rec *)SG(server_context))->request_time;
#else
    t = time(0);
#endif

-Rasmus

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

Reply via email to