Skip to content

== / === of nested lists, or of rows holding null, against an array_map copy is false (php true) #67

Closed

Description

@blacktrs

Summary

== / === of nested lists, or of rows holding null, against an array_map copy is false (php true).

Repro

<?php
// item: 24
var_dump([[1, [2, 3]]] === array_map(fn($x) => $x, [[1, [2, 3]]]));
class T { public array $rows; function __construct(array $r) { $this->rows = $r; } }
$t = new T([['a' => null]]);
var_dump($t->rows == array_map(fn($x) => $x, $t->rows));

Expected (php)

bool(true)
bool(true)

Actual (manticore 09cb49fb, Darwin arm64)

bool(false)
bool(false)

Tracking

Known-bug repro: tests/aot/repro/wrong/array_eq_nested_lists_null_rows.php — bash tests/aot/xfail.sh -k array_eq_nested_lists_null_rows 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. blacktrs commented on Oct 7, 2026

    @blacktrs
    ContributorAuthor

    Status on branch ds-own (PR #108): the repro now prints the php answer on macOS arm64 and on Linux arm64 / amd64 (glibc), but crashes (SIGSEGV, rc=139) on Alpine arm64 (musl) — reproduced in tools/docker/run_tests.sh --alpine -k array_eq_nested_lists_null_rows. musl has caught real memory bugs here before that glibc absorbed, so this stays open; the repro stays under tests/aot/repro/wrong/ and will report XPASS on the glibc / macOS rows until the musl crash is fixed.

  3. added
    crash
    on Oct 7, 2026
  4. added 2 commits that reference this issue on Oct 8, 2026
    846eafb
    7f55d99
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

    bugcrashwrong-answer

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions