mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
fix #32828 (Throwing exception in output_callback function with ob_start and
ob_end_clean leads to segfault)
This commit is contained in:
parent
5ca4b8383e
commit
b0d5236605
@ -238,7 +238,7 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS
|
||||
OG(ob_lock) = 1;
|
||||
|
||||
if (call_user_function_ex(CG(function_table), NULL, OG(active_ob_buffer).output_handler, &alternate_buffer, 2, params, 1, NULL TSRMLS_CC)==SUCCESS) {
|
||||
if (!(Z_TYPE_P(alternate_buffer)==IS_BOOL && Z_BVAL_P(alternate_buffer)==0)) {
|
||||
if (alternate_buffer && !(Z_TYPE_P(alternate_buffer)==IS_BOOL && Z_BVAL_P(alternate_buffer)==0)) {
|
||||
convert_to_string_ex(&alternate_buffer);
|
||||
final_buffer = Z_STRVAL_P(alternate_buffer);
|
||||
final_buffer_length = Z_STRLEN_P(alternate_buffer);
|
||||
|
Loading…
Reference in New Issue
Block a user