You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use temp stream instead of string to buffer content (#52)
* Use temp stream instead of string to buffer content
* Update MultipartStreamBuilder::build to buffer built content
in a php://temp stream resource instead of (string) $contents.
This way, the size of the stream built won't be limited by PHP
runtime limit.
* Detect available memory for maxmemory in buffer
* Detect available memory (in bytes). Then config the buffer
stream to stay in memory until reaching 1/4 of that.
* Added setBufferMaxMemory to manually override that limit.
* Fix code style
* Improve documentation to getAvailableMemory
* Improve documentation to MultipartStreamBuilder::getAvailableMemory
* Update CHANGELOG.md
* Remove the memory detection logic from build
* Remove the memory detection logic from MultipartStreamBuilder::build.
* Code style update
* Minor updates
* Improve readability of comment.
* Use the old __toString approach if the stream is not isReadable().
* Remove unnecessary comment
0 commit comments