php / php/web-php

Interactive Examples: Fibers cause WASM error about missing getcontext function

Open
#1,878 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Status: Needs Triage
Dominant language
PHP
Stars
1.1k
Forks
640
Avg merge
22h 36m
Merged PRs (30d)
16

Description

Affected Page URL

https://www.php.net/manual/en/language.fibers.php

Describe the bug

Related: https://github.com/php/doc-en/pull/5456 / https://github.com/php/doc-en/issues/4799

When I enabled the interactive examples on the above mentioned page and attempted to run the example, it failed with a "missing function: getcontext" error in the browser console.

I tried the same example on 3v4l.org's live preview and got the same result.

Steps to reproduce

(On a local working copy of the website and manual)

  1. Add annotations="interactive" to the language/fibers.xml chapter tag
  2. Build the manual
  3. Attempt to run the example
Expected behavior

Example runs and output is displayed in the manual.

Screenshots

No response

Additional context

No response

Contributor guide

Open the contributing guide

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 with language/fibers.xml in a local working copy, add the interactive annotation as described, build the manual, and reproduce the browser's missing getcontext error. Review php/doc-en PR 5456 and issue 4799 for related context. Done means the Fibers example runs in the manual and displays its output.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wasm
Domain
documentation
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.