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 property read on an ArrayAccess offsetGet result ($o[$k]->p) never releases the returned object. #132
Known-bug repro: tests/aot/repro/leak/arrayaccess_offsetget_property_base_leaks.php — bash tests/aot/xfail.sh -k arrayaccess_offsetget_property_base_leaks reports XFAIL while this is open and XPASS once it is fixed; then move the repro into tests/aot/cases/ and close this issue.
Same root, second shape: $x = $o[$k]; on any ArrayAccess object leaks too — the offsetGet call hands out +1 and the store-local element-read co-own (EmitLlvmLocals::elemReadCoOwn) retains it again, because the ArrayAccess_ node is read as a BORROW. Manticore\Ds\Map [] reads with a typed key no longer hit it (the inline fast path hands out a real borrow); every other ArrayAccess class does.
Activity
blacktrs commentedon Oct 7, 2026
Same root, second shape:
$x = $o[$k];on any ArrayAccess object leaks too — the offsetGet call hands out +1 and the store-local element-read co-own (EmitLlvmLocals::elemReadCoOwn) retains it again, because the ArrayAccess_ node is read as a BORROW. Manticore\Ds\Map[]reads with a typed key no longer hit it (the inline fast path hands out a real borrow); every other ArrayAccess class does.Repros #132 (ArrayAccess offsetGet result leaks as a property base) and
Manticore\Ds Map, Set and Vec: native insertion-ordered hash containe…