feat: add native markup expressions experiment (22-native-markup)#1
Open
imliam wants to merge 1 commit into
Open
feat: add native markup expressions experiment (22-native-markup)#1imliam wants to merge 1 commit into
imliam wants to merge 1 commit into
Conversation
JSX/XHP-style markup as a first-class PHP value: a bare `<` in operand position begins a markup expression that lowers at compile time to `new Html\Element(...)` / `Html\render_component(...)` and renders escape-by-default HTML. Ships a new always-on `ext/html` plus Zend scanner/parser/markup-engine changes. Builds from clean php-8.5.2 under the lab's minimal config (all 20 .phpt green, smoke 14/14) and is compiled to WebAssembly for the browser lab. The patch excludes the generated tokenizer data (regenerated by scripts/build.sh, as in 01-unless) and carries two small documented compat shims for Zend APIs that postdate the pinned php-8.5.2. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
I'm working on an implementation/RFC for JSX/XHP-style markup as a first-class PHP value, and it feels like the perfect thing to be able to test with this lab as it's pulling a feature another language has well supported! php/php-src#22661