summaryrefslogtreecommitdiff
path: root/sapi/apache2handler
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2004-08-11 20:51:41 +0000
committerMarcus Boerger <helly@php.net>2004-08-11 20:51:41 +0000
commit364c2fe5a248804fc53241ab8e0be2efbbc050b3 (patch)
treee99158b1d51bf076f61691f49055709901b2cf19 /sapi/apache2handler
parentaf77fdb9bf86143b663aa9860546e2f0e9ce23fc (diff)
downloadphp-git-364c2fe5a248804fc53241ab8e0be2efbbc050b3.tar.gz
TSRM fix
Diffstat (limited to 'sapi/apache2handler')
-rw-r--r--sapi/apache2handler/sapi_apache2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c
index 78d3aa4133..b2cde707ab 100644
--- a/sapi/apache2handler/sapi_apache2.c
+++ b/sapi/apache2handler/sapi_apache2.c
@@ -278,8 +278,10 @@ static void php_apache_sapi_log_message_ex(char *msg, request_rec *r)
}
static time_t php_apache_sapi_get_request_time(void) {
- php_struct *ctx = SG(server_context);
+ php_struct *ctx;
TSRMLS_FETCH();
+
+ ctx = SG(server_context);
return ctx->r->request_time;
}