Re: proc_open, fwrite, 16384 bytes magic

From: Date: Wed, 02 Nov 2005 09:44:31 +0000
Subject: Re: proc_open, fwrite, 16384 bytes magic
Groups: php.general 
Request: Send a blank email to php-general+get-224935@lists.php.net to get a copy of this message
> 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.: <?php $descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("file", "/tmp/error-output.txt", "a") ); $text = ""; for ($i=0; $i<10240; $i++) $text.="1"; $doccmd = "/bin/cat"; $res = proc_open ($doccmd, $descriptorspec, $pipes); echo fwrite ($pipes[0], $text)."\n"; echo fwrite ($pipes[0], $text)."\n"; fclose ($pipes[0]); ?> The output is: 10240 6144 which makes up exactly the magic 16384 bytes. So it's certainly not a qmail issue. Any ideas? :/

« previous php.general (#224935) next »