Skip to content

Lexer rejects a double-quoted string inside {$...} interpolation: "{$a["b"]}" #504

Closed

Description

@blacktrs

Summary

Lexer rejects a double-quoted string inside {$...} interpolation: "{$a["b"]}".

Repro

<?php
$a = ["b" => "x"];
echo "{$a["b"]}\n";

Expected (php)

x

Actual (manticore 56cd802a, Darwin arm64)

compile failed (rc=65):
tests/aot/repro/wrong/interp_nested_double_quotes.php:4:6: error: unexpected token in expression: Eof
tests/aot/repro/wrong/interp_nested_double_quotes.php:4:12: error: expected ';' after echo
tests/aot/repro/wrong/interp_nested_double_quotes.php:4:13: error: expected ';' after expression
Found 3 error(s), 0 warning(s).
tests/aot/repro/wrong/interp_nested_double_quotes.php: parse failed: unexpected token in expression: Eof at line 1, column 4
compile: front-end (parse/typeck/IR) returned null (rc=65)

Tracking

Known-bug repro: tests/aot/repro/wrong/interp_nested_double_quotes.php — bash tests/aot/xfail.sh -k interp_nested_double_quotes 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 27, 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