* so that if handler used some class, crash would not happen */
if (Z_TYPE(EG(user_error_handler)) != IS_UNDEF) {
zeh = &EG(user_error_handler);
- ZVAL_UNDEF(&EG(user_error_handler));
zval_ptr_dtor(zeh);
+ ZVAL_UNDEF(&EG(user_error_handler));
}
if (Z_TYPE(EG(user_exception_handler)) != IS_UNDEF) {
zeh = &EG(user_exception_handler);
- ZVAL_UNDEF(&EG(user_exception_handler));
zval_ptr_dtor(zeh);
+ ZVAL_UNDEF(&EG(user_exception_handler));
}
zend_stack_destroy(&EG(user_error_handlers_error_reporting));
zval array;
z_format = &args[format_offset];
- ZVAL_COPY_VALUE(&array, &args[1 + format_offset]);
-
- SEPARATE_ZVAL(&array);
+ ZVAL_DUP(&array, &args[1 + format_offset]);
convert_to_array_ex(&array);
argc = 1 + zend_hash_num_elements(Z_ARRVAL(array));
i++;
}
efree(args);
+ zval_dtor(&array);
args = newargs;
format_offset = 0;
}