"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 摘要。