feat(dom): add PHP 8.5 DOM compliance foundation - #654
Draft
Guikingone wants to merge 5 commits into
Draft
Conversation
Guikingone
force-pushed
the
feat/php-dom-compliance
branch
from
August 21, 2026 12:14
50347ae to
19ca0cd
Compare
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
This draft checkpoint implements the PHP 8.5 DOM/libxml foundation and the
current DOM behavior surface against the frozen php-src 8.5.8 contract.
The branch currently includes:
elephc-dombridge for libxml2 2.15.3and bundled Lexbor 2.7.0;
declarations, lowering, wrapper materialization, ownership, and structured
exception transport;
XInclude, C14N, selectors, collections, token lists, namespaces, iterators,
stream-wrapper integration, XPath callbacks, and native wrapper lifecycle;
Dom\XPath, including exact dynamic argument contracts and callback arrays;through
mixedor heterogeneous wrapper unions, with feature detection thatlinks every latent DOM branch.
The normative specification is locked at
docs/specs/php-dom-compliance.md. Detailed progress and reproducible gatesare maintained in
.plans/php-dom-compliance.md.Tracks #622.
Checkpoint status
This PR is intentionally a draft and is not yet ready to merge.
ccde8612b1LOCKconsensus from GLM 5.2, Kimi K2.7, and MiniMax M3remains open
The draft will be updated in place as those gates close.
Current checkpoint validation
cargo test --lib ir_lower::tests::internal_extensionscargo test --test codegen_tests mixed_dispatch_with_dom_candidates_links_required_runtimecargo check --testsRow:1:Adagit diff --checkThe replacement complete CI run for
ccde8612b1is active. Local Linux Dockerexecution remains unavailable on the current macOS host, so the complete
supported-target matrix will be provided by CI before this draft is marked ready.