WordPress / WordPress/wordpress-playground

Lazy load PHP extensions (like dom and libxml)

Open
#89 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Aspect] Browser [Feature] PHP.wasm [Priority] Low [Type] Enhancement
Dominant language
JavaScript
Stars
2k
Forks
462
Avg merge
18h 44m
Merged PRs (30d)
33

Description

I tried uploading the Web Stories plugin, but the plugin gave an error notice:

The following PHP extensions are missing: dom, libxml. Please contact your host to finish installation. The following PHP classes are missing: DOMAttr, DOMComment, DOMDocument, DOMElement, DOMNode, DOMNodeList, DOMText, DOMXPath. Please contact your host to finish installation. The following PHP functions are missing: libxml_use_internal_errors, libxml_clear_errors. Please contact your host to finish installation.

The dom and libxml extensions should be enabled, as they are almost always available on WordPress sites.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by investigating how PHP extensions are currently provided in the WebAssembly PHP runtime; the issue names dom and libxml as the missing extensions. Confirm the relevant extension-loading entry point and test coverage before defining done as making both extensions available to Web Stories without requiring host changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wasm
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.