]> granicus.if.org Git - php/commitdiff
Reset global request_time in sapi_activate. Reset it in sapi_deactivate
authorRasmus Lerdorf <rasmus@php.net>
Wed, 11 Aug 2004 06:18:25 +0000 (06:18 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Wed, 11 Aug 2004 06:18:25 +0000 (06:18 +0000)
too, although I can't see why that would be necessary, but most of the
other sapi globals are reset there as well.

main/SAPI.c

index 6836a51a05e8ba46cd6acbf38739c6e4196c6671..eff50f63a1cdfa3c345d461b554ad7f65127db26 100644 (file)
@@ -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;
 }