Skip to content

Spreading an array into a variadic Closure parameter crashes (SIGSEGV) instead of passing the elements. #375

Closed

Description

@blacktrs

Summary

Spreading an array into a variadic Closure parameter crashes (SIGSEGV) instead of passing the elements.

Repro

<?php
function one(Closure $f, array $a) { return $f(...$a); }
echo one(fn(...$p) => implode(",", $p), [2, 3]), "\n";

Expected (php)

2,3

Actual (manticore 8f908c13, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/spread_into_variadic_closure.php — bash tests/aot/xfail.sh -k spread_into_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 20, 2026
  2. added a commit that references this issue on Nov 9, 2026
    e89ac72
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