mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00
MF51: fix #36869 (memory leak in output buffering when using chunked output)
This commit is contained in:
parent
d7491a3e7e
commit
d15557fb76
1 changed files with 0 additions and 4 deletions
|
@ -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 (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…
Add table
Add a link
Reference in a new issue