Call-time pass by reference has deprecated

From: Date: Fri, 11 May 2001 01:04:24 +0000
Subject: Call-time pass by reference has deprecated
Groups: php.general 
Request: Send a blank email to php-general+get-52374@lists.php.net to get a copy of this message
I have just recevied the following error, on version 4.0.3pl1. ( Linux sustain5.cobalt.com ) I have not seen the error while running the same script on version 4.05 (Win32), 4.0RC1, R.0PL1 or 3.0.14 I'm not sure what the error is trying to tell me, or how to fix it (or make the error go away) 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 [runtime function name](). 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/sites/site91/web/globalc.lib on line 767 I've enclosed a snip of the file and indicated line 767 function getstats($server,$user,$password,$apop,$cntmessg,$from,$subject,$date) { $pop3_connection=new pop3_class; $pop3_connection->hostname=$server; if(($error=$pop3_connection->Open())=="") { if(($error=$pop3_connection->Login($user,$password,$apop))=="") { //// this next line is 767 if(($error=$pop3_connection->Statistics(&$messages,&$size))=="") $cntmessg =$messages; for($i=1;$i<=$messages;$i++) { if(($error=$pop3_connection->RetrieveMessage($i,&$headers,&$body,-1))=="") { for($line=0;$line<count($headers);$line++) { $line_data=strstr($headers[$line],":"); $line_data=substr($line_data,1,strlen($line_data)); $line_key=substr($headers[$line],0,(strlen($headers[$line])-strlen($line_dat a))-1); $line_key=trim(strtoupper($line_key)); if($line_key=="FROM") { $from[$i]=trim($line_data); } if($line_key=="SUBJECT") { $subject[$i]=trim($line_data); } if($line_key=="DATE") { $line_data=explode(",",$line_data); $tmp_data=explode(" ",trim($line_data[1])); unset($tmp_data[count($tmp_data)-1]); $date[$i]=implode("-",$tmp_data); } } } else { return 0; } } } else { return 0; } } else { return 0; } } else { return 0; } $pop3_connection->Close(); return 1; } Yours Mr. Adam ALLEN. adam@dynamicinteraction.co.uk http://www.dynamicinteraction.co.uk

« previous php.general (#52374) next »