Skip to content

feat: add native markup expressions experiment (22-native-markup) - #1

Open
imliam wants to merge 1 commit into
eddmann:mainfrom
imliam:feature/22-native-markup
Open

feat: add native markup expressions experiment (22-native-markup)#1
imliam wants to merge 1 commit into
eddmann:mainfrom
imliam:feature/22-native-markup

Conversation

@imliam

@imliam imliam commented Jul 13, 2026

Copy link
Copy Markdown

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

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant