com php-src: Ignore ZEND_FFI_TYPE_OWNED flag: ext/f fi/ffi.c
| From: | Dmitry Stogov | Date: | Wed, 23 Oct 2019 16:50:58 +0000 |
| Subject: | com php-src: Ignore ZEND_FFI_TYPE_OWNED flag: ext/f fi/ffi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-109032@lists.php.net to get a copy of this message | ||
Commit: c744531fff9ee03c027ca3c18b21f3382023ff7e
Author: Dmitry Stogov <dmitry@zend.com> Wed, 23 Oct 2019 19:50:58 +0300
Parents: 5f13eff4a24a47446bf4c5c4e2d7a440f0cec460
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c744531fff9ee03c027ca3c18b21f3382023ff7e
Log:
Ignore ZEND_FFI_TYPE_OWNED flag
Changed paths:
M ext/ffi/ffi.c
Diff:
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index 39bf2f82bf0..e2476653f72 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);