Skip to content

(array) on a statically-typed enum case segfaults instead of returning [name => ...] #241

Closed

Description

@blacktrs

Summary

(array) on a statically-typed enum case segfaults instead of returning [name => ...].

Repro

<?php
enum E { case A; }
$a = (array) E::A;
echo count($a), "\n";

Expected (php)

1

Actual (manticore ff00fa8e, Darwin arm64)


[exit code 139 — SIGSEGV]

Tracking

Known-bug repro: tests/aot/repro/crash/array_cast_enum_case_segfaults.php — bash tests/aot/xfail.sh -k array_cast_enum_case_segfaults 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
    crash
    on Oct 13, 2026
  2. added 2 commits that reference this issue on Oct 16, 2026
    d8c0465
    7f2be54
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

    bugcrash

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions