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
Destruct order of globals at normal script end differs from php #45
Known-bug repro: tests/aot/repro/wrong/global_destruct_order.php — bash tests/aot/xfail.sh -k global_destruct_order reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Partial (branch fix/batch-b, 576261b). Normal script end FIXED: OwnershipFlow drops main-scope objects in reverse declaration order (test global_destruct_order_normal_end). Still open: the exit() part of the repro (php destroys the function's locals first, then globals in reverse). exit() skips scope drops and the shutdown sweep runs in creation order. A reverse sweep on exit was tried and reverted: it broke dtor_shutdown_exit, where static-prop objects must stay in creation order. Real fix: exit() must unwind frames (run scope drops) before the sweep. Keep this issue open; the commit does not close it.
Activity
blacktrs commentedon Oct 13, 2026
Partial (branch fix/batch-b, 576261b). Normal script end FIXED: OwnershipFlow drops main-scope objects in reverse declaration order (test
global_destruct_order_normal_end). Still open: theexit()part of the repro (php destroys the function's locals first, then globals in reverse).exit()skips scope drops and the shutdown sweep runs in creation order. A reverse sweep on exit was tried and reverted: it brokedtor_shutdown_exit, where static-prop objects must stay in creation order. Real fix:exit()must unwind frames (run scope drops) before the sweep. Keep this issue open; the commit does not close it.