shulard / reactphp-adapter-issue-with-streaming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample repository to reproduce an issue with php-http/react-adapter and streams.

How to test ?

Using Composer:

composer install

Launch a server web at port 8000 to serve the public folder which contains the sample 10Mb file:

php -S 0.0.0.0:8000 -t public

Then launch the sample.php file:

php sample.php

You'll get an output like this one:

Fatal error: Allowed memory size of 5242880 bytes exhausted (tried to allocate 1118208 bytes) in /app/vendor/react/promise-stream/src/functions.php on line 61

About


Languages

Language:PHP 40.6%Language:Dockerfile 36.1%Language:Shell 23.3%