"Run code" buttons in the web docs do not function

未关闭
#2,059 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
40/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript, php, wasm
领域
frontend

调研方向

The payload names only the affected manual page and console errors about WebAssembly instantiation, not the files behind the Run code button. Start by reproducing on the linked page with browser devtools open and read the first wasm error, which should show whether the module fails to load or to compile. Done means the example runs and its output appears on the page in a current browser, with the root cause identified in the issue thread.

由索引模型根据 Issue 内容生成。

描述

Bug Status: Needs Triage
Affected Page URL

https://www.php.net/manual/en/language.basic-syntax.phptags.php

Describe the bug

Clicking the "Run code" button does not cause the code to be run, and there is no visible error message or other output. The console shows a number of errors related to wasm instantiation.

I linked one affected page, but this happens on every page that I've tried.

Steps to reproduce
  1. Go to any documentation page that has a "Run Code" button for a block of example PHP.
  2. Click "Run code"
Expected behavior

The code should execute and the output should be presented on the page.

Screenshots

Console errors:
image

Additional context

This happens on all of the following browsers (all on Windows 11):

  • Microsoft Edge, Version 157.0.4341.46
  • Chrome, Version 157.0.8103.51
  • Firefox, 160.0
主要语言
PHP
星标
1.1k
派生
648
平均合并
1 天 7 小时
30 天内合并 PR
45

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

php/web-php 的其他 Issue

查看 php/web-php 的全部 Issue

相似的 Issue

更多 PHP Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。