Skip to content

Hard bugs: reference representation, object handles, reified fit, comptime require - #555

Merged
blacktrs merged 28 commits into
mainfrom
fix/hard-bugs
Nov 2, 2026
Merged

blacktrs merged 28 commits into
mainfrom
fix/hard-bugs

Conversation

@blacktrs

@blacktrs blacktrs commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Hard bugs grouped by root cause, on top of #546 and #556.

Fixes #559, #187, #488, #495, #515, #548, #511, #457, #135, #136, #137, #297. Refs #353, #72.

Not fixed

#41 (design in docs/design/reference-cells.md), #353 dynamic-property part, #72, #475, #45. New: #549, #551, #557 (a temporary argument dies after the callee's locals; php before them). loop_rekind_foreach_binding now passes a named array to stay independent of #557.

Costs

+8 bytes per object (30M new+free: 0.556 to 0.592 s); $o->$m(...$args) allocates a box per element. symfony-app build: instructions retired +0.7%, binary 424.0 to 421.7 MB.

Testing

Targeted tests/aot/run.sh -k per area, tests/parser, tests/cli, analyze; all cases whose expected output has an object id. Not run locally: full suite, difftest, fixpoint, Linux gate, strict_invariance.sh (the parser now folds constant require operands). CI covers the suite and Linux.

blacktrs and others added 26 commits November 2, 2026 12:31
…o the caller's variable keeps one representation (Fixes #488)
…the caller's slot, not a written-back scratch (Fixes #187)
…l, typed or not, and keep its declared scalar coercion on stores (Refs #353)
…cell design; add repro for rc-1 reference elements shared on array copy (#548)
… release spread and unset holders before they keep elements shared (Fixes #548, Fixes #511)
…hrow TypeError where the origin cannot take it (Fixes #135, Fixes #136, Fixes #137)
…ser's generated autoload files as built in under composer: true
…l, so a throw cannot skip the scratch write-back
…, handle reused (was leaked and destructed at shutdown)
…rs, as php frees the temporary, not at statement end
…g rekinding, not argument-temporary release order (tracked by repro temp_arg_destroyed_after_callee_locals)
…'s buffer per call; pin with require_value_ownership
@blacktrs
blacktrs merged commit 280f18a into main Nov 2, 2026
6 checks passed
@blacktrs
blacktrs deleted the fix/hard-bugs branch November 2, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

require of a unit that returns a value: the array is released once per call but retained once, and realpath's buffer leaks

1 participant