Skip to content

is_a($className, 'lowercase', true) answers false when the class name is a runtime string and the target differs in case. #584

Closed

Description

@blacktrs

Summary

is_a($className, 'lowercase', true) answers false when the class name is a runtime string and the target differs in case.

Repro

<?php
class Aaa {}
class Mmm extends Aaa {}
foreach (['Aaa', 'Mmm'] as $c) {
    echo $c, ' ', is_a($c, 'aaa', true) ? 'y' : 'n', ' ', is_a($c, 'Aaa', true) ? 'y' : 'n', "\n";
}

Expected (php)

Aaa y y
Mmm y y

Actual (manticore 7c8d7761, Darwin arm64)

Aaa n y
Mmm n y

Tracking

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