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 local read at the top of a loop body reads its reference box's address once a later $x = &$a[$k] in the same body has rebound it #642
Known-bug repro: tests/aot/repro/wrong/dyn_name_call_local_later_ref_bound.php — bash tests/aot/xfail.sh -k dyn_name_call_local_later_ref_bound reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
changed the title [-]A local passed to a function called by run-time name reads as a raw box address once a later `$x = &$a[$k]` in the loop has rebound it.[/-][+]A local read at the top of a loop body reads its reference box's address once a later $x = &$a[$k] in the same body has rebound it[/+]on Nov 10, 2026
Narrowed: not specific to by-name calls. A direct show($x) at the top of the loop body misreads the same way (2.2E-314 instead of 1 on the second iteration), as does call_user_func. The repro is now the direct form: tests/aot/repro/wrong/local_read_before_later_ref_bind.php. Reproduces on v0.18.0.
Activity
[-]A local passed to a function called by run-time name reads as a raw box address once a later `$x = &$a[$k]` in the loop has rebound it.[/-][+]A local read at the top of a loop body reads its reference box's address once a later $x = &$a[$k] in the same body has rebound it[/+]blacktrs commentedon Nov 10, 2026
Narrowed: not specific to by-name calls. A direct
show($x)at the top of the loop body misreads the same way (2.2E-314instead of1on the second iteration), as doescall_user_func. The repro is now the direct form:tests/aot/repro/wrong/local_read_before_later_ref_bind.php. Reproduces on v0.18.0.Compile once, reuse everywhere: shared generic bodies, cached front-e…