#45174 [Opn->Csd]: fsockopen is said to return a socket resource type, but that is not correct
| From: | vrana@php.net | Date: | Wed, 05 Nov 2008 16:27:37 +0000 |
| Subject: | #45174 [Opn->Csd]: fsockopen is said to return a socket resource type, but that is not correct | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-1368@lists.php.net to get a copy of this message | ||
ID: 45174
Updated by: vrana@php.net
Reported By: Marius at lowvoice dot nl
-Status: Open
+Status: Closed
Bug Type: Documentation problem
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2008-06-04 12:47:54] Marius at lowvoice dot nl
Description:
------------
according to the documentation (for instance here:
http://www.php.net/manual/en/resource.php)
fsockopen() will return a
resource of type socket. But in fact it returns a stream.
Reproduce code:
---------------
$socket=fsockopen('localhost',22);
echo get_resource_type($socket);
# do something with socket_select(); if you still have doubts
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45174&edit=1