Skip to content

Stdlib: debug_backtrace() — VM + LLVM JIT/AOT #1378

Description

@PurHur

Summary

Implement debug_backtrace() for full PHP parity: VM, LLVM JIT, and AOT/self-host where applicable.

Return stack trace array; debugging and error handlers.

Context

  • Not in docs/capabilities.md (or JIT-deferred only).
  • North Star 1 #1044 · Self-host #1056
  • Audit: php script/audit-stdlib-jit.php

Acceptance criteria

  • debug_backtrace() in builtin tables / SelfHostBuiltinPolicy
  • VM + PHPUnit (compliance PHPT or unit test)
  • LLVM JIT lowering (or explicit deferral with issue link)
  • docs/capabilities.md row updated (regenerate matrix)

Related

Stdlib wave 2 tracker #1237 (closed; prior items largely landed).

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions