Skip to content

Calling an object whose __invoke is variadic crashes with SIGSEGV #571

Closed

Description

@blacktrs

Summary

Calling an object whose __invoke is variadic crashes with SIGSEGV.

Repro

<?php
class InvVar { public function __invoke(...$a) { return count($a); } }
$f = new InvVar;
echo $f(1, 2), "\n";

Expected (php)

2

Actual (manticore 52d73e13, Darwin arm64)


[exit code 139 — SIGSEGV]
/Users/taras/var/projects/manticore-repro/tools/lib/limit.sh: line 35: 81833 Segmentation fault: 11  "$TIMEOUT_KIND" -k 2 "$secs" "$@"

Tracking

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