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

This commit is contained in:
Antony Dovgal 2006-03-27 08:26:20 +00:00
parent d7491a3e7e
commit d15557fb76

View file

@ -675,11 +675,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 implicit_flush is On or chunked buffering, send contents to next buffer and return. */
if (OG(active_ob_buffer).chunk_size if (OG(active_ob_buffer).chunk_size
&& OG(active_ob_buffer).text_length >= 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); php_end_ob_buffer(1, 1 TSRMLS_CC);
return; return;
} }