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

Lower buffer size, and use it in the getContents #26

Merged
merged 1 commit into from
Jan 26, 2016

Conversation

joelwurtz
Copy link
Member

This is mainly to avoid too much nested call to the read method, as if we got a stream where the reads provide too few bytes (like 100) it will make a nested call to the read method for each part of the messages and will stop on a too muche nested call exception with xdebug.

Also there is no need to have more than 8192 as PHP already have a buffer with this size, so no performance issue.

This is mainly to avoid too much nested call to the read method, as if we got a stream where the reads provide too few bytes (like 100) it will make a nested call to the read method for each part of the messages and will stop on a too muche nested call exception with xdebug.

Also there is no need to have more than 8192 as PHP already have a buffer with this size, so no performance issue.
@dbu
Copy link
Contributor

dbu commented Jan 25, 2016

👍

joelwurtz added a commit that referenced this pull request Jan 26, 2016
Lower buffer size, and use it in the getContents
@joelwurtz joelwurtz merged commit 3b4ad14 into master Jan 26, 2016
@sagikazarmark sagikazarmark deleted the joelwurtz-patch-1 branch January 26, 2016 19:07
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

Successfully merging this pull request may close these issues.

None yet

2 participants