[php-src] PR #20385: fix sizeof zend_function allocation/copy

From: Date: Tue, 04 Nov 2025 15:22:26 +0000
Subject: [php-src] PR #20385: fix sizeof zend_function allocation/copy
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-33922@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/20385 Author: remicollet During build I notice some warnings, example ``` /builddir/build/BUILD/php-8.3.28_RC1-build/php-8.3.28RC1/ext/ffi/ffi.c: In function 'zend_ffi_cdata_get_closure': /builddir/build/BUILD/php-8.3.28_RC1-build/php-8.3.28RC1/ext/ffi/ffi.c:2185:22: warning: allocation of insufficient size '136' for type 'zend_function' {aka 'union _zend_function'} with size '240' [-Walloc-size] 2185 | func = ecalloc(1, sizeof(zend_internal_function)); | ^ /builddir/build/BUILD/php-8.3.28_RC1-build/php-8.3.28RC1/ext/ffi/ffi.c: In function 'zend_ffi_get_func': /builddir/build/BUILD/php-8.3.28_RC1-build/php-8.3.28RC1/ext/ffi/ffi.c:2961:22: warning: allocation of insufficient size '136' for type 'zend_function' {aka 'union _zend_function'} with size '240' [-Walloc-size] 2961 | func = ecalloc(1, sizeof(zend_internal_function)); | ^ ``` Trying to find everywhere where sizeof(zend_internal_function) is used for a zend_function Expert eyes welcome as I probably miss something

« previous php.git-pulls (#33922) next »