wp_mysql_parser: conditional WASM loader for PHP 8.4 (draft, stacked)#3564
Draft
adamziel wants to merge 1 commit intoadamziel/extensions-via-helperfrom
Draft
wp_mysql_parser: conditional WASM loader for PHP 8.4 (draft, stacked)#3564adamziel wants to merge 1 commit intoadamziel/extensions-via-helperfrom
adamziel wants to merge 1 commit intoadamziel/extensions-via-helperfrom
Conversation
Wires up the MySQL lexer/parser extension from WordPress/sqlite-database-integration#381 as a Playground side module, gated to PHP 8.4 in this run while we have no broader build matrix to test against. Other versions throw a clear error. The bundled .so itself is not included — Playground has no published artifact yet. Users build the extension themselves and pass the path via: npx @wp-playground/cli server --php=8.4 \ --wp-mysql-parser-so=/path/to/wp_mysql_parser.so Implementation reuses the helper from the previous PR in the stack: the wrapper is a thin EmscriptenOptions adapter that calls installPHPExtensionFilesSync() in onRuntimeInitialized, identical in shape to with-xdebug and with-intl. CLI plumbing covers Blueprints v1 only; v2 wiring is a follow-up.
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.
Stacked on #3547. Third PR in the chain exploring extension loading.
What
Wires the MySQL lexer/parser extension from WordPress/sqlite-database-integration#381 into Playground as a side module. Gated to PHP 8.4 in this run while we have no broader build matrix to test against — other versions throw a clear error at boot.
How to use
The .so isn't bundled (no published artifact yet). Build the extension from PR #381 and pass the path:
```
npx @wp-playground/cli server --php=8.4
--wp-mysql-parser-so=/path/to/wp_mysql_parser.so
```
Implementation
Out of scope
Test plan