[PHP-DEV] stream filter problem

2003-01-04 Thread moriyoshi
Hi, I'm currently working on base64 filter, and then I'm stuck with odd behaviour of stream_filter_write op. When I try to write some larger chunk to the next output filter than the length of buffer passed to my function, stream segfaults sometimes or goes into infinite loops on other attempts in

Re: [PHP-DEV] stream filter problem

2003-01-04 Thread Wez Furlong
the filter write functions should return the number of bytes of the input buffer that they *consumed*, not how many were written. (The read function should of course return the number read, but cannot exceed the maximum buffer size). However, there also seems to be a similar sounding problem with