jaymc Posted October 27, 2006 Share Posted October 27, 2006 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 161Here is line 161[code]$scfp = fsockopen($reqqq, "2005", &$errno, &$errstr, 4);[/code] Quote Link to comment https://forums.phpfreaks.com/topic/25297-can-anyone-shed-some-light-on-this/ Share on other sites More sharing options...
Psycho Posted October 27, 2006 Share Posted October 27, 2006 The 2nd link on a Google search for "Call-time pass-by-reference has been deprecated" brought up a perfect explanation and solution. Quote Link to comment https://forums.phpfreaks.com/topic/25297-can-anyone-shed-some-light-on-this/#findComment-115348 Share on other sites More sharing options...
obsidian Posted October 27, 2006 Share Posted October 27, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/25297-can-anyone-shed-some-light-on-this/#findComment-115356 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.