#24429 [NEW]: Call-time pass-by-reference has been deprecated
| From: | fakeraol at hotmail dot com | Date: | Tue, 01 Jul 2003 08:39:36 +0000 |
| Subject: | #24429 [NEW]: Call-time pass-by-reference has been deprecated | ||
| Groups: | php.doc | ||
| Request: | Send a blank email to phpdoc+get-969354970@lists.php.net to get a copy of this message | ||
From: fakeraol at hotmail dot com
Operating system: Win2k
PHP version: 4.3.1
PHP Bug Type: Documentation problem
Bug description: Call-time pass-by-reference has been deprecated
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; ...
--
Edit bug report at http://bugs.php.net/?id=24429&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24429&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24429&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24429&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24429&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24429&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24429&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24429&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24429&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24429&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24429&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24429&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24429&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24429&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24429&r=gnused