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
Spreading a mixed[] into a method call with fixed params before a variadic param segfaults. #186
Spreading a mixed[] into a method call with fixed params before a variadic param segfaults.
Repro
<?phpclass Sum { publicfunctionadd(int$x, int ...$more): int { return$x + array_sum($more); } }
/** @param mixed[] $a */functiontr(Sum$t, array$a): mixed { return$t->add(...$a); }
echotr(newSum(), [1, 2, 3]), "\n";
Expected (php)
6
Actual (manticore 1c706498, Darwin arm64)
[exit code 139 — SIGSEGV]
Tracking
Known-bug repro: tests/aot/repro/crash/spread_mixed_pack_before_variadic_param.php — bash tests/aot/xfail.sh -k spread_mixed_pack_before_variadic_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…
test: drop #186 repro duplicated by its promoted case