Ignore ZEND_FFI_TYPE_OWNED flag

This commit is contained in:
Dmitry Stogov 2019-10-23 19:50:58 +03:00
parent 5f13eff4a2
commit c744531fff

View File

@ -926,7 +926,7 @@ static void *zend_ffi_create_callback(zend_ffi_type *type, zval *value) /* {{{ *
n++;
} ZEND_HASH_FOREACH_END();
}
callback_data->ret_type = zend_ffi_get_type(type->func.ret_type);
callback_data->ret_type = zend_ffi_get_type(ZEND_FFI_TYPE(type->func.ret_type));
if (!callback_data->ret_type) {
zend_ffi_return_unsupported(type->func.ret_type);
efree(callback_data);