Browse Source

fix #36869 (memory leak in output buffering when using chunked output)

PHP-5.1
Antony Dovgal 20 years ago
parent
commit
2030a7a2ed
  1. 2
      NEWS
  2. 4
      main/output.c

2
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

4
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;
}

Loading…
Cancel
Save