Skip to content

A closure that throws has no frame in getTrace(): php reports it, the binary skips it. #80

Closed

Description

@blacktrs

Summary

A closure that throws has no frame in getTrace(): php reports it, the binary skips it.

Repro

<?php
function run() { $f = function () { throw new Exception("x"); }; $f(); }
try { run(); } catch (Exception $e) { echo count($e->getTrace()), "\n"; }

Expected (php)

2

Actual (manticore 3bea722c, Darwin arm64)

1

Tracking

Known-bug repro: tests/aot/repro/wrong/trace_closure_frame_missing.php — bash tests/aot/xfail.sh -k trace_closure_frame_missing 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
    wrong-answer
    on Oct 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

    bugwrong-answer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions