Repository navigation
Boot symfony-app in dev, codegen-independent CLI golden, prepare 0.15.0 - #294
Merged
Merged
Conversation
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.
Summary
Makes
examples/symfony-appboot inAPP_ENV=dev(including from a cold start with novar/), makes the CLI golden test independent of codegen, and prepares version 0.15.0.Fixes #287
Fixes #288
Fixes #289
Fixes #290
Reflection and dev boot
devcrashed at boot: the debug container dump hashes every class's reflected signature (ReflectionClassResource->ReflectionParameter::__toString->getDefaultValue()), and the compiler had no default-value factory for several kinds of methods.insteadofand aliases), interface methods and prelude-class methods (Exception::__construct, ...), keyed by the declaring class exactly as the emitter asks for them. One factory per (class, method, position); programs that never reflect pay nothing (hello-world and a small reflecting program are byte-identical in size tomain).self::Xfails with 'Class "" not found' (evaluated outside the declaring class) #288: a default writtenself::X/parent::X/new selfis evaluated in the declaring class's scope.interface R extends U, V).ReflectionProperty::setValue()works onException/Errorproperties; on a readonly property it throwsErrorlike Zend.DeepClone::getHydrator(->bindTo()on a closure read back from a static array was routed into an unrelated class's__call). Fixed narrowly:bindToon an untyped receiver is rebound as a closure when no class declaresbindTo. The general dispatch defect is tracked in A method call on a value of unknown type (closure, null) is dispatched to an unrelated class's __call instead of the closure method / an Error #292.Test infrastructure
tests/cli/behaviour.txtno longer holds checksums of compiler output (IR, MIR, AST, sig). Those went red on every codegen change (twice in one day) and forced a re-capture per branch. The golden now asserts exit code, non-empty output and stable markers per command. Checked with three different compilers.tests/cli/run.shnow runs in CI (insidetools/docker/gate.sh, so every Linux and macOS row)..github/workflows/gate.yml(weekly difftest + strict xfail) is removed:difftestruns the same corpus as the AOT suite, whose cases already carry php-generated expected output, and it has not been run for weeks.tools/difftest.shandrun_tests.sh --gatestay for manual use. It is a separate commit and can be dropped from the PR.tests/cliderives the expected version fromCOMPILER_VERSION, so a release needs no test edits.Release 0.15.0 (preparation only)
Release 0.15.0bumpsCOMPILER_VERSIONto 0.15.0 (Version.phpregenerated bybin/build) and the version examples in the docs.BOOTSTRAP_VERSIONstays 0.14.0 (the tree builds from the pin). Merging this PR does not publish anything: the release is thev0.15.0tag, pushed separately after the manual gates.Checked
macOS arm64:
bin/build(clean),analyze src --only undefined.,parse.error,tests/cli,install_smoke,check_version,-k refl70/70,-k exception,-k reflect,-k clone.symfony-apprebuilt with the fixed compiler (before the release commit):devcold boot x3 (rm -rf var) -> 200 and 404, 200 sequential requests each;prodcold -> 200/404 and 3000 concurrent requests, 1500x200 + 1500x404, RSS flat.symfony-console: 14/14 invocations byte-identical to Zend.Linux container (glibc arm64) via
tools/docker/run_tests.sh -k hello: build,install_smoke,libsuperglobal,librefpackandtests/cligreen.Not run: the full AOT suite,
tools/difftest.sh, the full Linux gate, amd64/musl rows. CI'sbootstrap-from-pinis the proof that the pinned release still builds this tree.Known gaps filed
#291 (TypeError message when a mixed value is assigned to a typed property), #292 (method calls on values of unknown type can be routed to an unrelated
__call; the general form of #290), #293 (bindTo(null)on an erased static closure when a__callclass exists). PreludeExceptionstill lists internal properties andArrayObject/SplObjectStorage/DateTimeImmutableare not reflectable, so aDeepCloneround-trip of them fails.