Skip to content

Spreading an array across a fixed parameter and the variadic parameter of a Closure crashes (SIGSEGV). #385

Closed

Description

@blacktrs

Summary

Spreading an array across a fixed parameter and the variadic parameter of a Closure crashes (SIGSEGV).

Repro

<?php
$g = fn($a, ...$r) => $a . ":" . implode(",", $r);
$arr = [1, 2, 3];
echo $g(...$arr), "\n";

Expected (php)

1:2,3

Actual (manticore a91c491f, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/spread_into_fixed_and_variadic_closure.php — bash tests/aot/xfail.sh -k spread_into_fixed_and_variadic_closure 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

  1. added
    bug
    crash
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions