php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #24429 Call-time pass-by-reference has been deprecated
Submitted: 2003-07-01 03:39 UTC Modified: 2003-07-02 08:03 UTC
From: fakeraol at hotmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.1 OS: Win2k
Private report: No CVE-ID: None
 [2003-07-01 03:39 UTC] fakeraol at hotmail dot com
Description:
------------
my php-version is 4.3.0 but thats unimportant.
the bug is in:
http://de2.php.net/manual/de/function.fsockopen.php

Beispiel 1. fsockopen()-Beispiel:
<?php
$fp = fsockopen ("www.example.com", 80, &$errno, &$errstr, 30);

english version is different:

Example 1. fsockopen() Example
<?php
$fp = fsockopen ("www.example.com", 80, $errno, $errstr, 30);

"&$errno, &$errstr" <=> "$errno, $errstr"


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

Actual result:
--------------
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; ...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-02 08:03 UTC] betz@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 [2020-02-07 09:57 UTC] phpdocbot@php.net
Automatic comment on behalf of betz
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=0114cd12a37dd8a8027d61e46eb71d59c7b53bad
Log: proto correction and bugfix #24429
 [2020-12-30 11:15 UTC] nikic@php.net
Automatic comment on behalf of betz
Revision: http://git.php.net/?p=doc/de.git;a=commit;h=5e46fef373b6bae25783ce068e2e396e67ecbcb4
Log: proto correction and bugfix #24429
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 19:01:31 2024 UTC