Bug #8087 Updated: fsockopen declaration
| From: | torben@php.net | Date: | Wed, 13 Feb 2002 22:00:01 +0000 |
| Subject: | Bug #8087 Updated: fsockopen declaration | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-276@lists.php.net to get a copy of this message | ||
ID: 8087
Updated by: torben@php.net
Reported By: james@ractive.ch
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: All
PHP Version: 4.0.2
New Comment:
This bug has been fixed in CVS.
Previous Comments:
------------------------------------------------------------------------
[2002-02-09 23:14:15] jimw@php.net
the code does force the third and fourth arguments to be refs, the
documentation is out of date.
------------------------------------------------------------------------
[2000-12-03 12:53:50] james@ractive.ch
When you use fsockopen with allow_call_time_pass_reference = Off in the
php.ini, there's an error message that this feature won't be supported
in future versions any more and that the declaration of fsockopen
should be changed. The other way round, the manual says: "Note that the
errno and errstr arguments must be passed by reference."
So, the declaration of fsockopen should be changed in future versions
to:
int fsockopen (string [udp://]hostname, int port [, int &errno [,
string &errstr [, double timeout]]])
Regards
Jean-Pierre Bergamin
http://www.ractive.ch
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=8087&edit=1