Skip to content

A first-class callable with a variable method name ($o->$h(...)) crashes. #393

Closed

Description

@blacktrs

Summary

A first-class callable with a variable method name ($o->$h(...)) crashes.

Repro

<?php
class C { function m(int $x) { return $x + 1; } }
$o = new C;
$h = "m";
$fc = $o->$h(...);
echo $fc(1), "\n";

Expected (php)

2

Actual (manticore 96d0daa4, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

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