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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
28 - 13 = ?
Subscribe to this entry?

 
 [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

Pull Requests

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: Sun Oct 06 19:01:27 2024 UTC