php.net |  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
Have you experienced this issue?
Rate the importance of this bug to you:

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

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

The first Example in german version says:

$fp = fsockopen ("www.example.com", 80, &$errno, &$errstr, 30);

and this works fine ...

The first Example in englisch version says:

$fp = fsockopen ("www.example.com", 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)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-02-12 07:38 UTC] hholzgra@php.net
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] nicos@php.net
Reclassifing.
 [2003-02-20 08:18 UTC] sniper@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 17:01:29 2024 UTC