]> granicus.if.org Git - php/commitdiff
TSRMLS_FETCH should be called prior to accessing any of the SG members
authorAnantha Kesari H Y <hyanantha@php.net>
Thu, 23 Sep 2004 15:08:31 +0000 (15:08 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Thu, 23 Sep 2004 15:08:31 +0000 (15:08 +0000)
sapi/apache2filter/sapi_apache2.c

index cb4ed06586e95c1fc6a164cebf2d0704fbeee9ac..8d61e60298d972ce5b933929606e8cffe834d052 100644 (file)
@@ -302,8 +302,8 @@ php_apache_disable_caching(ap_filter_t *f)
 static time_t
 php_apache_sapi_get_request_time(void)
 {
-       php_struct *ctx = SG(server_context);
        TSRMLS_FETCH();
+       php_struct *ctx = SG(server_context);
 
        return ctx->r->request_time;
 }