Repository navigation
Fix 10 bugs: void var_dump, enum array cast, callable slots, by-ref stdClass props, generator valid - #250
Merged
Conversation
…terator::valid() bool; Fixes #227
…time-built 'Class::' prefixes; Fixes #234
…or a subclass) reads func_num_args; keep the target across ResolveMethodFcc
…ocas stay in the entry block
…ods a reflection trampoline; Fixes #171
…mic invoke reads word 0 as float 0.0; Fixes #229
…a callable param (#252)
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
Fixes ten open bugs, batches F + G.
var_dump()of a void call prints NULL, notint(0)$obj ?? new Otherfolds to the static class of the left operand #226:$obj ?? new Othertypes as a class union, soget_classreads the runtime class(array)of a statically-typed enum case no longer segfaultsfunc_num_args()mixed &$outparameter is freed when the function returns. #233: a borrowed string stored throughmixed &$outis retained0.0is no longer turned into NULLvalid()on a Generator reached through a call receiver;Iterator::valid()typed bool$r = &$std->p)'Class::method'string callables dispatch through an erased slotEach fix has a promoted repro or a new case under
tests/aot/cases.Not fixed
exit()half needs frame unwindingNot verified
-k callable|generator|byref|closure|fcc.LowerFromAst.php,InferNodes.php,EmitLlvm.php,EmitLlvmCalls.php.'Class::method'literals present in the module; A closure returning a mixed float 0.0, called through a callable parameter, yields NULL instead of float(0) #229 only closures known statically.Follow-ups added to this PR
Class::methodstrings; runtime-built'EC::' . $m/"EC::{$m}"shapes. A name with noClass::literal anywhere is not covered.CELL_NULL;emitInvokeno longer guesses null from word 0, so float0.0throughcallablesurvives.ResolveMethodFcc::rebuildno longer dropsfccTarget.$obj ?? new Otherfolds to the static class of the left operand #226 subclass arm and valid() on an unstarted Generator reached through a method-call receiver of Iterator type SIGSEGVs #227 loop (IR checked: allocas hoisted) get regression cases.invoke/invokeArgs/getClosurework on by-ref methods.getClosure()'s closure does not write back by-ref args (needs&...$vars), so ReflectionMethod::invoke and getClosure throw "not invokable" for a method with a variadic or by-reference parameter. #171 stays open.$q = &$m['b'][0]; $q++) reads back double bits. #251 (nested mixed-map ref) and A function-name string read from an array element and passed to acallableparameter SIGBUSes. #252 (function-name string from array element passed tocallableSIGBUS).