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.
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.