[php-src] PR #25576: Fix GH-25574: FFI passes bools to variadic functions as uint8

From: Date: Thu, 19 Nov 2026 05:21:54 +0000
Subject: [php-src] PR #25576: Fix GH-25574: FFI passes bools to variadic functions as uint8
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40797@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25576 Author: Marti2203 Fixes #25574. > Pass a bool given as a variadic argument as ffi_type_sint32, as > the default argument promotions require, instead of ffi_type_uint8, > whose upper bytes in the register or stack slot are undefined. > > ext/ffi/tests/gh25574.phpt prints eight bools through > snprintf() after filling the argument slots with -1; without the > change it gives 1 0 1 -256 -255 -256 ... -256. > ext/ffi/tests pass. > > This issue was found by an LLM-assisted tool and verified manually.

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