Skip to content

Calling an erased object value that defines __invoke (id($o)(3)) crashes. #390

Closed

Description

@blacktrs

Summary

Calling an erased object value that defines __invoke (id($o)(3)) crashes.

Repro

<?php
class C { function __invoke($a) { return $a * 3; } }
function id($x) { return $x; }
$o = new C;
echo id($o)(3), "\n";

Expected (php)

9

Actual (manticore 96d0daa4, Darwin arm64)


[exit code 138 — SIGBUS]

Tracking

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