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
A line comment ends at the closing tag, so a trailing comment before it still closes PHP mode #431
A line comment ends at the closing tag, so a trailing comment before it still closes PHP mode.
Repro
<?php$a = 1;
if ($a) : // open ?>
yes
<?phpendif; // close ?>
done
Expected (php)
yes
done
Actual (manticore 03e183b6, Darwin arm64)
compile failed (rc=65):
tests/aot/repro/crash/line_comment_closing_tag.php:6:1: error: expected ';' after expression
Found 1 error(s), 0 warning(s).
tests/aot/repro/crash/line_comment_closing_tag.php: parse failed: expected ';' after expression at line 6, column 1
compile: front-end (parse/typeck/IR) returned null (rc=65)
Tracking
Known-bug repro: tests/aot/repro/crash/line_comment_closing_tag.php — bash tests/aot/xfail.sh -k line_comment_closing_tag 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
Bug sweep: lexer, reference cells, hooks, reflection, array_splice (#428
blacktrs commentedon Oct 26, 2026
Fixed in cd3558d (merged via PR #461).