From: Rasmus Lerdorf Date: Wed, 11 Aug 2004 06:18:25 +0000 (+0000) Subject: Reset global request_time in sapi_activate. Reset it in sapi_deactivate X-Git-Tag: PRE_ZEND_VM_DISPATCH_PATCH~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3166314d89d1e11779c0193b706e0bf277c91601;p=php Reset global request_time in sapi_activate. Reset it in sapi_deactivate too, although I can't see why that would be necessary, but most of the other sapi globals are reset there as well. --- diff --git a/main/SAPI.c b/main/SAPI.c index 6836a51a05..eff50f63a1 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -334,6 +334,7 @@ SAPI_API void sapi_activate(TSRMLS_D) SG(request_info).current_user = NULL; SG(request_info).current_user_length = 0; SG(request_info).no_headers = 0; + SG(global_request_time) = 0; /* It's possible to override this general case in the activate() callback, if * necessary. @@ -430,6 +431,7 @@ SAPI_API void sapi_deactivate(TSRMLS_D) SG(sapi_started) = 0; SG(headers_sent) = 0; SG(request_info).headers_read = 0; + SG(global_request_time) = 0; }