php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41575 proc_open expects exactly 3 parameters
Submitted: 2007-06-03 10:38 UTC Modified: 2007-06-03 10:40 UTC
From: vesely at tana dot it Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Solaris
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vesely at tana dot it
New email:
PHP Version: OS:

 

 [2007-06-03 10:38 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-06-03 10:40 UTC] bjori@php.net
It is clearly stated when those parameters where added in the docs.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 22:00:02 2025 UTC