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

From: Date: Sun, 09 Sep 2018 18:45:14 +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-103037@lists.php.net to get a copy of this message
Commit: 23b057742e3cf199612fa8050ae86cae675e214e Author: Stanislav Malyshev <stas@php.net> Sat, 28 Jul 2018 22:16:29 -0700 Parents: 1ba3314335b8bb7c86c24443588d5ef9c55d4a44 Branches: PHP-7.0 PHP-7.1 PHP-7.2 PHP-7.3 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=23b057742e3cf199612fa8050ae86cae675e214e 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 6fa2521..0ebca9b 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -678,6 +678,7 @@ zend_first_try { if (!parent_req) { php_apache_request_dtor(r TSRMLS_CC); 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 (#103037) next »