]> granicus.if.org Git - php/commitdiff
Our context's lifetime differs from the lifetime of a filter's context,
authorSascha Schumann <sas@php.net>
Wed, 1 Nov 2000 19:26:57 +0000 (19:26 +0000)
committerSascha Schumann <sas@php.net>
Wed, 1 Nov 2000 19:26:57 +0000 (19:26 +0000)
so don't set the filter's context in the INIT_CTX macro.

sapi/apache2filter/sapi_apache2.c

index d18de3dbe42c1270788d87144c916762e3a090ae..1a784cf52883cbc9294f9fd5c8c9165dc711e5bc 100644 (file)
@@ -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); \
        }