php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38200 resource type not mentioned in proc_open
Submitted: 2006-07-25 00:18 UTC Modified: 2007-01-22 01:29 UTC
From: peillert at xs4all dot nl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: all
Private report: No CVE-ID: None
 [2006-07-25 00:18 UTC] peillert at xs4all dot nl
Description:
------------
the resource type of the proc_* functions are not
documented in both 

the chapter 'CXXII. Program Execution Functions' as 
the 'Appendix L. List of Resource Types'.

the resource type returned by get_resource_type is 'process'. i included some source-code to get that
result. 

currently in the documentation it says:
'This extension has no resource types defined.'.

also on the proc_open page there is not any mention of how
the resource is called.

this can be tricky if you want to check if you got
the right resource.

greets, Docey.


Reproduce code:
---------------
<?php
/*

*/

$cmd = "ipconfig /all";
$pipes = array();
$pipespec = array();
$pipespec[0][0] = "pipe";
$pipespec[0][1] = "r";
$pipespec[1][0] = "pipe";
$pipespec[1][1] = "w";
$pipespec[2][0] = "pipe";
$pipespec[2][1] = "w";


$rc = proc_open($cmd, $pipespec, $pipes);

	if(is_resource($rc)){
		$type = get_resource_type($rc);
		print("proc_open returns a resource of type '".$type."'.");
	}else{
	 print("proc_open did not return a resource.");
	}

proc_close($rc);

?>

Expected result:
----------------
the resource type of proc_open wich is not documented.

Actual result:
--------------
well, so see this updated in both 
the chapter 'CXXII. Program Execution Functions' as 
the 'Appendix L. List of Resource Types'. 



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-22 01:29 UTC] didou@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:10 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=460865b723c63fb8a2a91e37c9310992d1258dec
Log: Fix #38200: Document the resource of ref.exec
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Aug 03 22:00:03 2025 UTC