Skip to content

Interactive Examples: Fibers cause WASM error about missing getcontext function #1878

@AllenJB

Description

@AllenJB

Affected Page URL

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

Describe the bug

Related: php/doc-en#5456 / php/doc-en#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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions