From: Antony Dovgal Date: Mon, 27 Mar 2006 08:26:10 +0000 (+0000) Subject: fix #36869 (memory leak in output buffering when using chunked output) X-Git-Tag: php-5.1.3RC2~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2030a7a2eda129112bb0cd05fdfe5c4aa9fb8de3;p=php fix #36869 (memory leak in output buffering when using chunked output) --- diff --git a/NEWS b/NEWS index 615dcd0afe..d6fb0e9d34 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,8 @@ PHP NEWS - Removed the E_STRICT deprecation notice from "var". (Ilia) - Fixed debug_zval_dump() to support private and protected members. (Dmitry) - Fixed SoapFault::getMessage(). (Dmitry) +- Fixed bug #36869 (memory leak in output buffering when using chunked output). + (Tony) - Fixed bug #36859 (DOMElement crashes when calling __construct when clone'ing). (Tony) - Fixed bug #36857 (Added support for partial content fetching to the HTTP diff --git a/main/output.c b/main/output.c index 9f62418914..522ff35b0c 100644 --- a/main/output.c +++ b/main/output.c @@ -606,11 +606,7 @@ static inline void php_ob_append(const char *text, uint text_length TSRMLS_DC) /* If implicit_flush is On or chunked buffering, send contents to next buffer and return. */ if (OG(active_ob_buffer).chunk_size && OG(active_ob_buffer).text_length >= OG(active_ob_buffer).chunk_size) { - zval *output_handler = OG(active_ob_buffer).output_handler; - if (output_handler) { - output_handler->refcount++; - } php_end_ob_buffer(1, 1 TSRMLS_CC); return; }