Skip to content

Legacy "${$v}" variable-variable interpolation fails to compile with "dangling local $ read". #541

Closed

Description

@blacktrs

Summary

Legacy "${$v}" variable-variable interpolation fails to compile with "dangling local $ read".

Repro

<?php
$a = 'hello';
$v = 'a';
echo "${$v}\n";

Expected (php)

hello

Actual (manticore 4939f76c, Darwin arm64)

compile failed (rc=65):
compile failed: MIR.verify: dangling local $ read in __main but never defined
compile: front-end (parse/typeck/IR) returned null (rc=65)

Tracking

Known-bug repro: tests/aot/repro/crash/interp_dollar_brace_varvar.php — bash tests/aot/xfail.sh -k interp_dollar_brace_varvar 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
    and removed
    bug
    crash
    on Oct 30, 2026
  2. added a commit that references this issue on Nov 9, 2026
    e89ac72
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions