Skip to content

Commit 2030a7a

Browse files
committed
fix #36869 (memory leak in output buffering when using chunked output)
1 parent cde55c9 commit 2030a7a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ PHP NEWS
1111
- Removed the E_STRICT deprecation notice from "var". (Ilia)
1212
- Fixed debug_zval_dump() to support private and protected members. (Dmitry)
1313
- Fixed SoapFault::getMessage(). (Dmitry)
14+
- Fixed bug #36869 (memory leak in output buffering when using chunked output).
15+
(Tony)
1416
- Fixed bug #36859 (DOMElement crashes when calling __construct when
1517
clone'ing). (Tony)
1618
- Fixed bug #36857 (Added support for partial content fetching to the HTTP

main/output.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,11 +606,7 @@ static inline void php_ob_append(const char *text, uint text_length TSRMLS_DC)
606606
/* If implicit_flush is On or chunked buffering, send contents to next buffer and return. */
607607
if (OG(active_ob_buffer).chunk_size
608608
&& OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) {
609-
zval *output_handler = OG(active_ob_buffer).output_handler;
610609

611-
if (output_handler) {
612-
output_handler->refcount++;
613-
}
614610
php_end_ob_buffer(1, 1 TSRMLS_CC);
615611
return;
616612
}

0 commit comments

Comments
 (0)