Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update WASM to PHP 8.4.4, and enable mbstring and XML extensions #1228

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 17 additions & 9 deletions js/interactive-examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ function generateExampleOutputTitle(phpVersion) {
function createOutput(output) {
const container = document.createElement("div");
container.classList.add("screen", "example-contents");

if (output != "") {
const title = document.createElement("p");
title.innerText = generateExampleOutputTitle(PHP.version);
container.appendChild(title);
const div = document.createElement("div");
div.classList.add("examplescode");
container.appendChild(div);
const pre = document.createElement("pre");
pre.classList.add("examplescode");
pre.innerText = output;
div.appendChild(pre);
return container;
}

const title = document.createElement("p");
title.innerText = generateExampleOutputTitle(PHP.version);
title.innerText = "This example did not produce any output."
container.appendChild(title);
const div = document.createElement("div");
div.classList.add("examplescode");
container.appendChild(div);
const pre = document.createElement("pre");
pre.classList.add("examplescode");
pre.innerText = output;
div.appendChild(pre);
return container;
}

Expand Down Expand Up @@ -91,7 +99,7 @@ async function main() {
PHP.buffer.length = 0;
};

phpcode.before(button);
phpcode.after(button);
});
}

Expand Down
13 changes: 6 additions & 7 deletions js/php-web.mjs

Large diffs are not rendered by default.

Binary file modified js/php-web.wasm
Binary file not shown.