Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowed memory size of nnnnnn bytes exhausted #65

Closed
the-djmaze opened this issue Feb 16, 2016 · 2 comments
Closed

Allowed memory size of nnnnnn bytes exhausted #65

the-djmaze opened this issue Feb 16, 2016 · 2 comments

Comments

@the-djmaze
Copy link

PSR-7 has an issue. https://evertpot.com/psr-7-issues
Some people i helped abandoned Guzzle due to this bug.
Try it yourself with an 1GB file and send a partial stream.

$stream = GuzzleHttp\Stream\Stream::factory(fopen($path, 'r'));
$stream->seek($offset);
while (!$stream->eof()) {
    echo $stream->read($length);
}
$stream->close();
@mtdowling
Copy link
Member

The library you're using in your example is not Guzzle's PSR-7 library but an older version of Guzzle.

@the-djmaze
Copy link
Author

Ah that explains it. Thanks i will notify them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants