Skip to content

ReflectionMethod::IS_PUBLIC is an undefined constant #202

Closed

Description

@blacktrs

Summary

ReflectionMethod::IS_PUBLIC is an undefined constant.

Repro

<?php
class A { public function f() {} private function g() {} }
$n = [];
foreach ((new ReflectionClass('A'))->getMethods(ReflectionMethod::IS_PUBLIC) as $m) { $n[] = $m->name; }
echo implode(',', $n), "\n";

Expected (php)

f

Actual (manticore dc1d5079, Darwin arm64)


[exit code 255]
PHP Fatal error:  Uncaught Error: Undefined constant ReflectionMethod::IS_PUBLIC

Tracking

Known-bug repro: tests/aot/repro/wrong/reflection_method_is_public_constant.php — bash tests/aot/xfail.sh -k reflection_method_is_public_constant 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 12, 2026
  2. added 2 commits that reference this issue on Oct 14, 2026
    cb3652b
    d8c0465
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