Skip to content

Commit 1ef6c7a

Browse files
author
Joe Orton
committed
Fix case where php_handle_aborted_connection was called outside a
try/end_try block (#25570).
1 parent ed60253 commit 1ef6c7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sapi/apache2handler/sapi_apache2.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,9 @@ zend_first_try {
567567

568568
rv = ap_pass_brigade(r->output_filters, brigade);
569569
if (rv != APR_SUCCESS || r->connection->aborted) {
570+
zend_first_try {
570571
php_handle_aborted_connection();
572+
} zend_end_try();
571573
}
572574
apr_brigade_cleanup(brigade);
573575
} else {

0 commit comments

Comments
 (0)