diff options
Diffstat (limited to 'ext/ffi')
-rw-r--r-- | ext/ffi/ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index 39bf2f82bf..e2476653f7 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -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); |