You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FFI passes PHP bools to variadic C functions without promoting them to int #25574
zend_ffi_pass_var_arg() passes true/false as ffi_type_uint8. For a variadic argument C applies
the default argument promotions, so the callee reads an int; the upper bytes are whatever was in the
register or stack slot:
Activity
devnexen commentedon Nov 19, 2026
Hi @Marti2203 your fix looks right, feel free to open a PR.
Use ap_php_snprintf in the phpGH-25574 test