RE: [PHP-DEV] Stream chunk size

2009-03-06 Thread Jonathan Bond-Caron
On Mon Mar 2 11:10 PM, Andi Gutmans wrote: > I don't see a fundamental issue why it could not be arbitrary. > The only challenge which may be an issue is that this code clearly > allocates the buffer on the stack for what are probably performance > reasons. If you allow arbitrary chunk size and u

RE: [PHP-DEV] Stream chunk size

2009-03-02 Thread Andi Gutmans
[mailto:jbo...@openmv.com] > Sent: Monday, March 02, 2009 8:48 AM > To: 'PHP Developers Mailing List' > Subject: [PHP-DEV] Stream chunk size > > Hi everyone, I have a question about streams and the maximum 'chunk size' of > 8192. > > > > I&#x

[PHP-DEV] Stream chunk size

2009-03-02 Thread Jonathan Bond-Caron
Hi everyone, I have a question about streams and the maximum ‘chunk size’ of 8192. I’ve read README.STREAMS and found these slides by Wez: http://netevil.org/blog/2008/07/slides-php-streams While trying to write an Amazon S3 stream wrapper and I ran into an issue with large files: $f