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

Đang mở
#2,059 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
40/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, php, wasm
Lĩnh vực
frontend

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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
Ngôn ngữ chính
PHP
Star
1.1k
Fork
648
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của php/web-php

Tất cả issue của php/web-php

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.