Re: proc_open, fwrite, 16384 bytes magic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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? :/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux