From: Sascha Schumann Date: Wed, 1 Nov 2000 19:26:57 +0000 (+0000) Subject: Our context's lifetime differs from the lifetime of a filter's context, X-Git-Tag: php-4.0.4RC3~401 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d9ba87c84c7461e3173ac977e3444849d7fab366;p=php Our context's lifetime differs from the lifetime of a filter's context, so don't set the filter's context in the INIT_CTX macro. --- diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index d18de3dbe4..1a784cf528 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -228,7 +228,7 @@ module MODULE_VAR_EXPORT php4_module; #define INIT_CTX \ if (ctx == NULL) { \ /* Initialize filter context */ \ - SG(server_context) = f->ctx = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx)); \ + SG(server_context) = ctx = apr_pcalloc(f->r->pool, sizeof(*ctx)); \ ctx->bb = ap_brigade_create(f->c->pool); \ }