Skip to content

A closing tag terminates a statement without a semicolon #432

Closed

Description

@blacktrs

Summary

A closing tag terminates a statement without a semicolon.

Repro

<?php
$k = "v";
function f() {
    echo "a"
    ?>
    mid
    <?php
    return strtoupper("b")
?>
<?php }
echo f(), "\n";

Expected (php)

a    mid
    B

Actual (manticore 03e183b6, Darwin arm64)

compile failed (rc=65):
tests/aot/repro/crash/closing_tag_ends_statement.php:6:5: error: expected ';' after echo
Found 1 error(s), 0 warning(s).
compile failed: lazy body tests/aot/repro/crash/closing_tag_ends_statement.php:4 [{     echo "a"     ?>     mid     <?php     return strtoupper("b") ?> <?php }]: expected ';' after echo at line 6, column 5
compile: front-end (parse/typeck/IR) returned null (rc=65)

Tracking

Known-bug repro: tests/aot/repro/crash/closing_tag_ends_statement.php — bash tests/aot/xfail.sh -k closing_tag_ends_statement 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
    on Oct 24, 2026
  2. blacktrs commented on Oct 26, 2026

    @blacktrs
    ContributorAuthor

    Fixed in cd3558d (merged via PR #461).

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

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions