From 2ca0c2fd10239f2805f92f3acf448bc22cdb8adf Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Fri, 28 Mar 2025 18:58:22 +0000 Subject: [PATCH] ext/ffi: Use 64bit integer to hold array length --- ext/ffi/ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index 275d1052cb9..401b80f25a1 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -6436,7 +6436,7 @@ static zend_result zend_ffi_validate_array_element_type(zend_ffi_type *type) /* void zend_ffi_make_array_type(zend_ffi_dcl *dcl, zend_ffi_val *len) /* {{{ */ { - int length = 0; + int64_t length = 0; zend_ffi_type *element_type; zend_ffi_type *type;