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
A call passing cell (mixed) values to a typed variadic param packs them raw: the callee reads tagged words as ints. #184
A call passing cell (mixed) values to a typed variadic param packs them raw: the callee reads tagged words as ints.
Repro
<?phpfunctionf(int$x, int ...$m): int { return$x + array_sum($m); }
functiong(mixed$a): mixed { returnf($a[0], $a[1], $a[2]); }
echog([1, 2, 3]), "\n";
Expected (php)
6
Actual (manticore 81d45956, Darwin arm64)
-8444249301319674
Tracking
Known-bug repro: tests/aot/repro/wrong/variadic_pack_cell_args_typed_param.php — bash tests/aot/xfail.sh -k variadic_pack_cell_args_typed_param reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Activity
fix(calls): rebuild cell variadic packs to the typed vec, split sprea…