From: Joe Orton Date: Thu, 21 Oct 2004 19:43:37 +0000 (+0000) Subject: MFH: Fix case where php_handle_aborted_connection was called X-Git-Tag: php-4.3.10RC1~47 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bcb3eb98a8b41ff23f5cc26959d0b1773be28c71;p=php MFH: Fix case where php_handle_aborted_connection was called outside a try/end_try block (#25570). --- diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index 0bf67b6555..8035212a51 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -562,7 +562,9 @@ zend_first_try { rv = ap_pass_brigade(r->output_filters, brigade); if (rv != APR_SUCCESS || r->connection->aborted) { +zend_first_try { php_handle_aborted_connection(); +} zend_end_try(); } apr_brigade_cleanup(brigade); } else {