You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Lexer rejects a double-quoted string inside {$...} interpolation: "{$a["b"]}" #504
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