Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-03 Thread Curt Zirzow
On Thu, 03 Nov 2005 13:14:48 -0800, Philip Hallstrom wrote: > ... > > Anyway, on FreeBSD 5.4 running CLI PHP 5.0.5 with your previously sent > script I get output of: > > 10240 > 10240 > > anyway, thought that might be helpful... > ... > >>> The output is: >>> 10240 >>> 6144 >>> which ma

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-03 Thread Philip Hallstrom
Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an error in the log file, which will perhaps help trace the issue: cat: stdout: Broken pipe Could be wrong, but I think you're getting that error because you are closing $pipes[0] which well, closes the pipe and result

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread Jochem Maas
max wrote: Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an error in the log file, which will perhaps help trace the issue: cat: stdout: Broken pipe no real help but: sounds like you might have hit a bug, check the bug DB and if you can't find anything report a

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread max
Sorry, as a follow-up, I just realized that from 'cat' I AM finally getting an error in the log file, which will perhaps help trace the issue: cat: stdout: Broken pipe > The output is: > 10240 > 6144 > which makes up exactly the magic 16384 bytes. So it's certainly not a > qmail issue. --

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-02 Thread max
> can you proc_open() anything else and get it to accept more than 16KB ? > also 4.4.1 is out. No, I've just tried the same with /bin/cat, I get the same result, i.e.: array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $text = ""; for ($

Re: [PHP] proc_open, fwrite, 16384 bytes magic

2005-11-01 Thread Jochem Maas
Max Belushkin wrote: Hi everyone, I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0, FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer is larger, the rest is discarded. No errors

[PHP] proc_open, fwrite, 16384 bytes magic

2005-11-01 Thread Max Belushkin
Hi everyone, I've ran into a rather strange problem with Apache 2.0.x, PHP 4.4.0, FreeBSD. When I proc_open qmail-inject, the first 16384 bytes from a buffer are accepted perfectly, which makes it an exact 16 KB. If a buffer is larger, the rest is discarded. No errors appear anywhere - and