Skip to content

readonly is accepted as a function name #433

Closed

Description

@blacktrs

Summary

readonly is accepted as a function name.

Repro

<?php
function readonly($a, $b = true) { return $a . "ro"; }
echo readonly("x"), "\n";

Expected (php)

xro

Actual (manticore 03e183b6, Darwin arm64)

compile failed (rc=65):
tests/aot/repro/crash/readonly_function_name.php:3:10: error: expected function name
Found 1 error(s), 0 warning(s).
tests/aot/repro/crash/readonly_function_name.php: parse failed: expected function name at line 3, column 10
compile: front-end (parse/typeck/IR) returned null (rc=65)

Tracking

Known-bug repro: tests/aot/repro/crash/readonly_function_name.php — bash tests/aot/xfail.sh -k readonly_function_name 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