summaryrefslogtreecommitdiff
path: root/ext/ffi
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-10-23 19:50:58 +0300
committerDmitry Stogov <dmitry@zend.com>2019-10-23 19:50:58 +0300
commitc744531fff9ee03c027ca3c18b21f3382023ff7e (patch)
tree06eb19b184ae93fa030dfe8abe2ddd15ea88e595 /ext/ffi
parent5f13eff4a24a47446bf4c5c4e2d7a440f0cec460 (diff)
downloadphp-git-c744531fff9ee03c027ca3c18b21f3382023ff7e.tar.gz
Ignore ZEND_FFI_TYPE_OWNED flag
Diffstat (limited to 'ext/ffi')
-rw-r--r--ext/ffi/ffi.c2
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);