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
Stdlib: number_format() dec_point: named parameter — unknown name must Error not silently use defaults (ext/standard/number_format.c) #10132
number_format() accepts the wrong named parameter dec_point: (php-src stub uses decimal_separator:). Zend throws Error: Unknown named parameter $dec_point. This compiler binds by position/slot and formats with default separators, masking caller bugs.
Activity
PurHur commentedon Jun 19, 2026
claim: PHP Compiler STD Lib — starting this run
Reject number_format() dec_point:/thousands_sep: named aliases (#10132)…
PurHur commentedon Jun 19, 2026
Merged via #10138.
Fix: Removed incorrect
dec_point/thousands_sepnamed-parameter aliases fromBuiltinParamNames::aliasesForFunction(). Wrong names now throwError: Unknown named parameter $dec_pointmatching Zend; canonicaldecimal_separator:/thousands_separator:unchanged.Verification:
php bin/vm.php test/repro/issue_number_format_dec_point_named.php→ Fatal Error (matches php8.2)php bin/vm.php test/repro/issue_number_format_named.php→'1.23'/'1 235'vendor/bin/phpunit --filter number_format_dec_point_named→ OK (4)php bin/compile.php -lon both repros → exit 0