php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #8087 fsockopen declaration
Submitted: 2000-12-03 12:53 UTC Modified: 2002-02-13 17:00 UTC
From: james at ractive dot ch Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0.2 OS: All
Private report: No CVE-ID: None
 [2000-12-03 12:53 UTC] james at ractive dot 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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-09 23:14 UTC] jimw@php.net
the code does force the third and fourth arguments to be refs, the documentation is out of date.
 [2002-02-13 17:00 UTC] torben@php.net
This bug has been fixed in CVS.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Aug 19 15:01:28 2024 UTC