From: Anantha Kesari H Y Date: Thu, 23 Sep 2004 15:08:31 +0000 (+0000) Subject: TSRMLS_FETCH should be called prior to accessing any of the SG members X-Git-Tag: PRE_NEW_VM_GEN_PATCH~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=13163ad5e414f2323c94442093529c32d071d7e9;p=php TSRMLS_FETCH should be called prior to accessing any of the SG members --- diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index cb4ed06586..8d61e60298 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -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; }