[php-src] PR #24344: Fix GCC 15 -Walloc-size warnings in ext/ffi

From: Date: Thu, 15 Oct 2026 09:13:07 +0000
Subject: [php-src] PR #24344: Fix GCC 15 -Walloc-size warnings in ext/ffi
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-39459@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/24344 Author: marc-mabe The trampoline fallbacks in zend_ffi_cdata_get_closure() and zend_ffi_get_func() deliberately allocate only a zend_internal_function but assign it to a zend_function pointer. GCC 15 reports this as "allocation of insufficient size", which breaks --enable-werror builds. Use the same uintptr_t cast as zend_get_property_hook_trampoline().

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