php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #45174 fsockopen is said to return a socket resource type, but that is not correct
Submitted: 2008-06-04 12:47 UTC Modified: 2008-11-05 16:27 UTC
From: Marius at lowvoice dot nl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2008-06-04 12:47 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-05 16:27 UTC] vrana@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.


 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 07:00:01 2026 UTC