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
A function whose only return is an int literal, when it falls off the end, yields int(0) where php yields NULL. #542
A function whose only return is an int literal, when it falls off the end, yields int(0) where php yields NULL.
Repro
<?phpfunctionh($x) { if ($x) { return1; } }
var_dump(h(true));
var_dump(h(false));
Expected (php)
int(1)
NULL
Actual (manticore 4939f76c, Darwin arm64)
int(1)
int(0)
Tracking
Known-bug repro: tests/aot/repro/wrong/inferred_return_falls_off_end_zero.php — bash tests/aot/xfail.sh -k inferred_return_falls_off_end_zero 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