Skip to content

isset() over an erased (mixed) base reads a raw int element whose bits equal #89

Closed

Description

@blacktrs

Summary

isset() over an erased (mixed) base reads a raw int element whose bits equal.

Repro

<?php
// the boxed-NULL word as unset. php: true.
function probe(mixed $m): void {
    var_dump(isset($m[0]), isset($m[1]), $m[0] ?? 'miss');
}
probe([-3659174697238528, 5]);

Expected (php)

bool(true)
bool(true)
int(-3659174697238528)

Actual (manticore 3dc6ed40, Darwin arm64)

bool(false)
bool(true)
string(4) "miss"

Tracking

Known-bug repro: tests/aot/repro/wrong/erased_isset_raw_int_equals_null_word.php — bash tests/aot/xfail.sh -k erased_isset_raw_int_equals_null_word 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 5, 2026
  2. added a commit that references this issue on Oct 13, 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