[php-src] PR #25724: Fix GH-25573: FFI constant expression values

From: Date: Wed, 25 Nov 2026 01:18:51 +0000
Subject: [php-src] PR #25724: Fix GH-25573: FFI constant expression values
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40982@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25724 Author: Marti2203 Follow-up to #25575, which on PHP-8.4 now only fixes the SIGFPE crashes. This PR fixes the constant values from #25573 on master, since they change results: > - '\a' evaluated to 0, and hex escapes with digits > A-F were off by 10 ('\xA' was 0) > - sizeof and __alignof__ of a > character constant gave 1; a character constant has type int, so > both are now 4 (as gcc gives) > - _Alignas(N) used the alignment of N's type (4 or 8) > instead of N; _Alignas(0) now has no effect and a non-power-of-two > alignment is a parser error > - comparing an unsigned value with a character constant read the tQ:,r¥8ý|€&JŠ > double member instead of the character > - the operands of % must have integer type; a floating operand > is now a parser error > > Test: ext/ffi/tests/gh25573_values.phpt (fails before, passes > after); ext/ffi tests 95/95. > > This issue was found by an LLM-assisted tool and verified manually.

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