Skip to content

Commit c744531

Browse files
committed
Ignore ZEND_FFI_TYPE_OWNED flag
1 parent 5f13eff commit c744531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/ffi/ffi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ static void *zend_ffi_create_callback(zend_ffi_type *type, zval *value) /* {{{ *
926926
n++;
927927
} ZEND_HASH_FOREACH_END();
928928
}
929-
callback_data->ret_type = zend_ffi_get_type(type->func.ret_type);
929+
callback_data->ret_type = zend_ffi_get_type(ZEND_FFI_TYPE(type->func.ret_type));
930930
if (!callback_data->ret_type) {
931931
zend_ffi_return_unsupported(type->func.ret_type);
932932
efree(callback_data);

0 commit comments

Comments
 (0)