Skip to content

Fix 39 bugs: eval order, lifetimes, numerics, raw-int erasure, TypeDef/GC - #247

Merged
blacktrs merged 32 commits into
mainfrom
fix/bug-batch-2
Oct 14, 2026
Merged

blacktrs merged 32 commits into
mainfrom
fix/bug-batch-2

Conversation

@blacktrs

Copy link
Copy Markdown
Contributor

What

Fixes 39 open bugs, grouped into five batches (merged here): evaluation order and ref destructuring, object lifetimes and backtraces, numeric and misc semantics, raw-int array erasure, TypeDef/foreach/GC.

Fixes #28 #29 #30 #32 #35 #36 #38 #49 #50 #51 #52 #53 #56 #62 #64 #66 #70 #71 #74 #75 #76 #78 #80 #87 #88 #89 #91 #97 #100 #106 #107 #118 #119 #123 #127 #131 #154 #206

Partial (keep open)

#34 ($o->{$e} = &$x bind), #45 (exit() destruct order), #73 (first-class-callable arg count), #81 (leaf frame only for intdiv/str_repeat), #171 (by-ref half).

Left out, labeled needs-design with scope notes

#27 #41 #46 #47 #48 #58 #59 #61 #65 #69 #72 #79 #115 #124 #135 #136 #137 #187.

Not in this PR

Fixes already on fix/symfony-ownflow-inference (#208 #199 #198 #191 #192 #190 #185 #182 #181 #157 #160 #156 …). Expect conflicts in LowerFromAst / EmitLlvm* with that branch.

Verification

Local macOS: bin/build green; targeted run.sh -j 0 -k filters green; xfail.sh 0 XPASS. Full AOT suite, difftest and Linux gate NOT run.

Linux-sensitive: cycle collector (#118, #123), shutdown destruct order (#45), emitUnset (#91), destructor registry in EmitLlvmRuntime.

…dims late, bind by-ref destructuring, return old value of postfix on dim/prop

Fixes #28
Fixes #29
Fixes #66
Fixes #30
Fixes #56
…atch php; box a null-typed operand as a null cell. Fixes #52
…_get_args surplus

Discarded 'new C();' is released at the statement; nullsafe receiver temp is
released after its statement; user ArrayAccess read is a +1 on return;
fresh object/mixed arg of gettype/is_object is released right after the test;
global-scope objects are destroyed in reverse declaration order at script end;
gc_collect_cycles runs __destruct (discovery order) before freeing a cycle;
closure calls and raising builtins (intdiv, str_repeat) get trace frames;
known closure surplus args reach func_get_args(); __invoke keeps the written
arg count for func_num_args().

Fixes #97
Fixes #100
Fixes #118
Fixes #119
Fixes #206
Fixes #70
Fixes #80
Fixes #81
Fixes #106, Fixes #107, Fixes #131, Fixes #127, Fixes #154, Fixes #71, Fixes #123
@blacktrs
blacktrs merged commit 9766030 into main Oct 14, 2026
8 checks passed
@blacktrs
blacktrs deleted the fix/bug-batch-2 branch October 14, 2026 05:35
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.

$a[$i] = $i++ evaluation order differs from php

1 participant