Skip to content

A call to a user function is looked up case-sensitively: php answers GETTHING() for getThing(), the build reports an undefined-function trap. #474

Closed

Description

@blacktrs

Summary

A call to a user function is looked up case-sensitively: php answers GETTHING() for getThing(), the build reports an undefined-function trap.

Repro

<?php
function getThing() { return 'ok'; }
echo GETTHING(), "\n";

Expected (php)

ok

Actual (manticore 7599a57b, Darwin arm64)


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

Tracking

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