mirror of
https://github.com/php/php-src.git
synced 2024-12-01 05:43:38 +08:00
Fixed bug #24951 (ob_flush() needlessly destroys output handler).
This commit is contained in:
parent
370ea1c82f
commit
5e9a18a5c0
@ -247,7 +247,9 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS
|
||||
}
|
||||
}
|
||||
OG(ob_lock) = 0;
|
||||
zval_ptr_dtor(&OG(active_ob_buffer).output_handler);
|
||||
if (!just_flush) {
|
||||
zval_ptr_dtor(&OG(active_ob_buffer).output_handler);
|
||||
}
|
||||
orig_buffer->refcount -=2;
|
||||
if (orig_buffer->refcount <= 0) { /* free the zval */
|
||||
zval_dtor(orig_buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user