#41575 [Opn->Bgs]: proc_open expects exactly 3 parameters

From: Date: Sun, 03 Jun 2007 10:40:39 +0000
Subject: #41575 [Opn->Bgs]: proc_open expects exactly 3 parameters
References: 1  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969376529@lists.php.net to get a copy of this message
ID: 41575 Updated by: bjori@php.net Reported By: vesely at tana dot it -Status: Open +Status: Bogus Bug Type: Documentation problem Operating System: Solaris PHP Version: Irrelevant New Comment: It is clearly stated when those parameters where added in the docs. Previous Comments: ------------------------------------------------------------------------ [2007-06-03 10:38:32] vesely at tana dot it Description: ------------ php issues a warning which conflicts with proc_open documentation. (That was in version 4.4.4: In case it's already fixed please add a version number to the bug doc - Thanx) Reproduce code: --------------- php -r '$r = proc_open("pwd", array(0=>array("file", "/dev/null", "r"),1=>array("file", "/dev/null","w"),2=>array("file", "/dev/null","w")), $pipes, NULL, NULL); if (is_resource($r)) proc_close($r);' Expected result: ---------------- none Actual result: -------------- PHP Warning: proc_open() expects exactly 3 parameters, 5 given in Command line code on line 1 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41575&edit=1

« previous php.doc (#969376529) next »