#22183 [Fbk]: Different examples in German and English documentation ... German version works

From: Date: Thu, 13 Feb 2003 00:55:09 +0000
Subject: #22183 [Fbk]: Different examples in German and English documentation ... German version works
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-32932@lists.php.net to get a copy of this message
 ID:               22183
 Updated by:       sniper@php.net
 Reported By:      goth@php-resource.de
 Status:           Feedback
 Bug Type:         Sockets related
 Operating System: DON'T KNOW
 PHP Version:      4.3.0
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2003-02-12 14:46:11] nicos@php.net

Reclassifing.

------------------------------------------------------------------------

[2003-02-12 07:38:48] 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 04:25:28] goth@php-resource.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)

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=22183&edit=1



Thread (1 message)

  • sniper@php.net
  • Unknown Message
    • sniper@php.net
« previous php.bugs (#32932) next »