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
ext/standard/addcslashes.php (or shared string builtin base) — throw ArgumentCountError for wrong arity; reuse shared guard if one exists for other string builtins
Activity
PurHur commentedon Jul 21, 2026
claim: PHP Compiler STD Lib — starting this run
stdlib: addcslashes() arity uses ArgumentCountError (#21756) (#21772)
PurHur commentedon Jul 21, 2026
Merged via #21772
Fix:
addcslashes()VM/JIT arity now usesInternal::requireExactArgCount/requireExactJitArgCount(ZendArgumentCountErrormessage shape).Verification:
php bin/vm.php -r '…'→ArgumentCountError: addcslashes() expects exactly 2 arguments, 1 given./script/phpunit.sh --filter addcslashes_argument_count→ OK (4 tests)