|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22183 Different examples in German and English documentation ... German version works
Submitted: 2003-02-12 04:25 UTC Modified: 2003-02-20 08:18 UTC
From: goth at php-resource dot de Assigned:
Status: No Feedback Package: Sockets related
PHP Version: 4.3.0 OS: DON'T KNOW
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: goth at php-resource dot de
New email:
PHP Version: OS:


 [2003-02-12 04:25 UTC] goth at php-resource dot de

I found a difference in German and English Documentation of function fsockopen().

The first Example in german version says:

$fp = fsockopen ("", 80, &$errno, &$errstr, 30);

and this works fine ...

The first Example in englisch version says:

$fp = fsockopen ("", 80, $errno, $errstr, 30);

and this seem not to work in every case ...

(Difference: $errno and $errstr are passed with by ref operator in german version)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-12 07:38 UTC]
actualy the english version is right,
whether a parameter is passed by value
or by reference is specified in the
function definition.

passing by reference at call time is 
deprecated (and you should see warnings
about this if your error reporting level
is high enough)

can you please describe the problems 
you experience in more detail?
 [2003-02-12 14:46 UTC]
 [2003-02-20 08:18 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Tue Dec 07 22:03:34 2021 UTC