#45174 [NEW]: fsockopen is said to return a socket resource type, but that is not correct

From: Date: Wed, 04 Jun 2008 12:47:54 +0000
Subject: #45174 [NEW]: fsockopen is said to return a socket resource type, but that is not correct
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-865@lists.php.net to get a copy of this message
From: Marius at lowvoice dot nl Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: fsockopen is said to return a socket resource type, but that is not correct 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 bug report at http://bugs.php.net/?id=45174&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45174&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45174&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45174&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45174&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45174&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45174&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45174&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45174&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45174&r=support Expected behavior: http://bugs.php.net/fix.php?id=45174&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45174&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45174&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45174&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45174&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45174&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45174&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45174&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45174&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45174&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45174&r=mysqlcfg

« previous php.doc.bugs (#865) next »