Skip to content

A method call is looked up case-sensitively: php answers $a->GETTHING() and A::SM() for getThing()/sm(), the binary throws "Call to undefined method". #473

Closed

Description

@blacktrs

Summary

A method call is looked up case-sensitively: php answers $a->GETTHING() and A::SM() for getThing()/sm(), the binary throws "Call to undefined method".

Repro

<?php
class A { public function getThing() { return 'ok'; } public static function sm() { return 's'; } }
$a = new A;
echo $a->GETTHING(), "\n";
echo A::SM(), "\n";

Expected (php)

ok
s

Actual (manticore 7599a57b, Darwin arm64)


[exit code 255]
PHP Fatal error:  Uncaught Error: Call to undefined method A::GETTHING()

Tracking

Known-bug repro: tests/aot/repro/wrong/method_call_case_insensitive.php — bash tests/aot/xfail.sh -k method_call_case_insensitive 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 25, 2026
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