Skip to content

is_object() answers false for an enum case (php: true). #319

Closed

Description

@blacktrs

Summary

is_object() answers false for an enum case (php: true).

Repro

<?php
enum Suit: string { case H = 'h'; }
var_dump(is_object(Suit::H));

Expected (php)

bool(true)

Actual (manticore 6be1853b, Darwin arm64)

bool(false)

Tracking

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