Repository navigation
Bug sweep 3: erased channels, hooks, define(), IIFE unwind, DOM setAttribute (#156 #189 #194 #201 #240 #260 #296 #303 #329 #435 #437 #458) - #483
Merged
Conversation
…-granular peak-RSS noise cannot fail it Fixes #437
…fixed by earlier ownership work Fixes #156
…lining its expression at every use site Fixes #435
get_object_vars() outside the class and json_encode() walked a virtual property's raw slot (int(0)); php returns the get hook's value. Fixes #458
… into it A by-value array param typed from enum-case callers held raw ordinals; a string store flipped the buffer to cells without converting them, so the cases printed as floats. The cellify rebuild already boxes ordinals as case singletons, so enum elements join the forward-cellify set. Fixes #329
…me hint A bare array param taking a typed array from one caller and a json_decode result from another wrote the separated inner array back RAW; into a cell-hinted parent that read back as a float. Fixes #189
…m the slot's `$this->m[$k] += $arr` typed the slot assoc[string,int] while the nested default stored arrays into it; the element then printed as an address. Fixes #194
…eter The computed name has no static slot, so the by-ref argument degraded to a value copy that the callee dereferenced as an address (SIGSEGV). It now dispatches over the declared array properties like `$r = &$this->$name`. Fixes #201
Resource is documentation only; the slot routinely holds false from a failed fopen. Typed obj<Resource>, it took that cell as a pointer and crashed. Fixes #240
… name FETCH_CLASS and fetchObject instantiate a run-time class name inside the pdo prelude, which the walker-reachability scan never reads; var_dump/print_r of such an object fell through to the stdClass bag walk. Fixes #303
…nd out of the call drops its env Fixes #260
…m of an erased-receiver call
The call site coerces arguments to the fallback candidate's signature; an arm declaring string read the raw number as a string pointer (DOMElement::setAttribute('hidden', $x ? 1 : 0) crashed in McXmlDoc::newNode).
Fixes #296
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
get_object_varsoutside the class,json_encode) reads hooked properties through the get hook.arrayparam whose callers pass enum cases prints the enums as floats #329 enum-element arrays join forward-cellify (string store into a barearrayparam no longer prints enums as floats).__mir_elem_encode_raw(json_decode results no longer read back as float).$this->m[$k] += $arron a property whose default is a nested array literal reads the element as int and prints an address #194+=on a property defaulting to a nested array literal: the slot becomes a cell channel when element categories differ.f($this->$name)into anarray &$xparameter segfaults #201f($this->$name)intoarray &$xbinds a temporary reference instead of a value copy.@var resource|nullthat is assigned false crashes the next$this->os ?? $this->ldread #240@var resource|nulldocblock on an untyped slot no longer types it as an object.FETCH_CLASS/fetchObject.define()with a run-time value lives in a module cell with adefined()flag.stringparam of an arm goes through a cell (fixeslist --format=xmlsegfault).return_ref_boxed_local_no_leakwarms up before measuring.Not done
tests/aot/repro/wrong/nested_assoc_returned_into_union_literal.php(XFAIL), cause not confirmed.memory_get_usageagainst tight thresholds; same peak-RSS flakiness as Leak-check cases measure peak RSS, so one page of allocator noise fails them (return_ref_boxed_local_no_leak) #437 is possible.Risk / gates owed
arrayparam whose callers pass enum cases prints the enums as floats #329, An array parameter called with a typed array and with a json_decode result reads the decoded one as garbage. #189), define/IIFE lowering, erased-receiver dispatch. Linux gate, difftest, fixpoint not run; targeted-kgroups green on each half before merge, merged branch not rebuilt locally (CI first).