Skip to content

class_exists() is case-sensitive; php resolves class names case-insensitively. #436

Closed

Description

@blacktrs

Summary

class_exists() is case-sensitive; php resolves class names case-insensitively.

Repro

<?php
class Foo {}
var_dump(class_exists('foo'), class_exists('\FOO'));

Expected (php)

bool(true)
bool(true)

Actual (manticore 17e5d434, Darwin arm64)

bool(false)
bool(false)

Tracking

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