Interactive Examples: Fibers cause WASM error about missing getcontext function
Nobody has claimed this yet.
- 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)
- Add
annotations="interactive"to thelanguage/fibers.xmlchapter tag - Build the manual
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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