You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Arrays of enums / closures compare by carrier identity #36
Arrays of enums / closures compare by carrier identity.
Repro
<?phpenum E { case A; }
var_dump([E::A] == [E::A], [E::A] === [E::A]);
$f = function () {};
var_dump([$f] == [$f], [$f] === [$f]);
Expected (php 8.5)
bool(true)
bool(true)
bool(true)
bool(true)
Actual (manticore 10affa68, macOS arm64)
bool(false)
bool(false)
bool(false)
bool(false)
Tracking
Known-bug repro: tests/aot/repro/wrong/enum_array_compare.php — bash tests/aot/xfail.sh -k enum_array_compare 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