com php-src: Fix for bug #76582: sapi/apache2handler/sapi_a pache2.c

From: Date: Mon, 10 Sep 2018 13:10:39 +0000
Subject: com php-src: Fix for bug #76582: sapi/apache2handler/sapi_a pache2.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103046@lists.php.net to get a copy of this message
Commit: 7d16058be7c7ae1471a6ec1e5855496261603252 Author: Stanislav Malyshev <stas@php.net> Sat, 28 Jul 2018 22:16:29 -0700 Committer: Sara Golemon <pollita@php.net> Mon, 10 Sep 2018 09:10:39 -0400 Parents: b7df57c9f6f2943f654af55e20e08286b175bcde Branches: PHP-7.1.22 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=7d16058be7c7ae1471a6ec1e5855496261603252 Log: Fix for bug #76582 The brigade seems to end up in a messed up state if something fails in shutdown, so we clean it up. Bugs: https://bugs.php.net/76582 Changed paths: M sapi/apache2handler/sapi_apache2.c Diff: diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index e7edcab..2c3356b 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -723,6 +723,7 @@ zend_first_try { if (!parent_req) { php_apache_request_dtor(r); ctx->request_processed = 1; + apr_brigade_cleanup(brigade); bucket = apr_bucket_eos_create(r->connection->bucket_alloc); APR_BRIGADE_INSERT_TAIL(brigade, bucket);

« previous php.cvs (#103046) next »