]> granicus.if.org Git - php/commitdiff
Fixed bug #25570 (Possible crash in apache2handler when zend_bailout called
authorIlia Alshanetsky <iliaa@php.net>
Fri, 19 Sep 2003 00:44:50 +0000 (00:44 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Fri, 19 Sep 2003 00:44:50 +0000 (00:44 +0000)
outside of zend_try {} block).

sapi/apache2handler/sapi_apache2.c

index 4982a740d4b66c2f848d36e881881be69639fe00..ae9727700d66897c69d0307e936f49950245b3ad 100644 (file)
@@ -487,6 +487,8 @@ static int php_handler(request_rec *r)
                ap_add_cgi_vars(r);
        }
 
+zend_first_try {
+
        ctx = SG(server_context);
        if (ctx == NULL) {
                ctx = SG(server_context) = apr_pcalloc(r->pool, sizeof(*ctx));
@@ -556,6 +558,8 @@ static int php_handler(request_rec *r)
                ctx->r = parent_req;
        }
 
+} zend_end_try();
+
        return OK;
 }