Interactive Examples: Fibers cause WASM error about missing getcontext function
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- PHP
- Sterne
- 1.1k
- Forks
- 640
- Ø Merge
- 22 Std. 36 Min.
- Gemergte PRs (30 T.)
- 16
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit language/fibers.xml in einer lokalen Arbeitskopie, füge die interaktive Annotation wie beschrieben hinzu, baue das Handbuch und reproduziere den fehlenden getcontext-Fehler des Browsers. Sieh dir php/doc-en PR 5456 und Issue 4799 an, um den zugehörigen Kontext zu erhalten. Als abgeschlossen gilt die Aufgabe, wenn das Fibers-Beispiel im Handbuch ausgeführt wird und seine Ausgabe anzeigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- php, wasm
- Bereich
- documentation
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 50/100