Jump to content

Archived

This topic is now archived and is closed to further replies.

jaymc

Can anyone shed some light on this..

Recommended Posts

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/jaydio/public_html/site/login/whosonline/index.php on line 161

Here is line 161

[code]$scfp = fsockopen($reqqq, "2005", &$errno, &$errstr, 4);[/code]

Share this post


Link to post
Share on other sites
The 2nd link on a Google search for "Call-time pass-by-reference has been deprecated" brought up a perfect explanation and solution.

Share this post


Link to post
Share on other sites
Basically, the fsockopen() function doesn't accept a pass by reference in it's API. As of PHP 4, I believe it is, you have to declare in the function declaration itself whether you are allowing for pass by reference. So... as you have it now, to avoid that warning, you'll have to pass $errno and $errstr directly.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.