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
An enum argument to a dynamically-called closure's mixed param arrives as its ordinal #38
An enum argument to a dynamically-called closure's mixed param arrives as its ordinal.
Repro
<?phpenum E { case A; case B; }
$fs = [function (mixed$v): void { var_dump($vinstanceof E); var_dump($v); }];
$fs[0](E::B);
Expected (php 8.5)
bool(true)
enum(E::B)
Actual (manticore 10affa68, macOS arm64)
bool(false)
float(5.0E-324)
Tracking
Known-bug repro: tests/aot/repro/wrong/enum_into_mixed_closure_param.php — bash tests/aot/xfail.sh -k enum_into_mixed_closure_param 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