note 85413 rejected from function.fsockopen by bjori
| From: | bjori@php.net | Date: | Fri, 29 Aug 2008 08:23:33 +0000 |
| Subject: | note 85413 rejected from function.fsockopen by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143970@lists.php.net to get a copy of this message | ||
Note Submitter: steve at ssgreenberg dot name
----
The definition of fsockopen says that $errno and $errstr should be passed by reference. The
official example fails to do this.
Only one posted example does it correctly.
I think the following would be correct.
$fp = fsockopen($host_name, $port_number, &$errno, &$errstr, $timeout);