Skip to content

[PHP.wasm] Stream stdout and stderr data to the API consumer instead of buffering it #1946

@adamziel

Description

@adamziel

PHP.wasm redirects the output streams to files, e.g. /internal/stdout. This is caused by an Emscripten limitation – a null byte in the stdout stream is treated as the end of that stream. Let's find a way for PHP to stream the output data piece by piece – this would unlock faster rendering, streaming data between two Playgrounds, and stream-exporting entire sites as ZIP files without running out of memory.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions