Ошибка в скрипте почты

PHPer

Новичок
Ошибка в скрипте почты

Есть скрипт почты, работал нормально, не менялся. Вдруг стал выдавать такую оштбку:

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.

С чем это может быть связано и как исправить?

P.S. Версия PHP тоже не изменялась
 

.des.

Поставил пиво кому надо ;-)
в вызовах функции убрать & параметров.
PHP:
// передача по ссылке

// было
function foo($par) {}
$a = 5;
foo(&$a);

// стало
function foo(&$par) {}
$a = 5;
foo($a);
 

PHPer

Новичок
Ругается на эту строчку

if(($error=$pop3_connection->Login($us,$pass,$apop))=="")

Function Login($user,$password,$apop)
{
if($this->state!="AUTHORIZATION")
return("connection is not in AUTHORIZATION state");
if($apop)
{
if($this->PutLine("APOP $user ".md5($this->greeting.$password))==0)
return("Could not send the APOP command");
$response=$this->GetLine();
if(GetType($response)!="string")
return("Could not get APOP login command response");
if(strtok($response," ")!="+OK")
return("APOP login failed: ".strtok("\r\n"));
}
else
{
if($this->PutLine("USER $user")==0)
return("Could not send the USER command");
$response=$this->GetLine();
if(GetType($response)!="string")
return("Could not get user login entry response");
if(strtok($response," ")!="+OK")
return("User error: ".strtok("\r\n"));
if($this->PutLine("PASS $password")==0)
return("Could not send the PASS command");
$response=$this->GetLine();
if(GetType($response)!="string")
return("Could not get login password entry response");
if(strtok($response," ")!="+OK")
return("Password error: ".strtok("\r\n"));
}
$this->state="TRANSACTION";
return("");
}

-~{}~ 22.02.05 04:07:

Автор оригинала: .des.
в вызовах функции убрать & параметров.
PHP:
// передача по ссылке

// было
function foo($par) {}
$a = 5;
foo(&$a);

// стало
function foo(&$par) {}
$a = 5;
foo($a);
Все, сенкс, терь работает. А где можно по этому хелп найти? Ну, что это такое и с чем едят?
 

.des.

Поставил пиво кому надо ;-)

PHPer

Новичок
Автор оригинала: .des.
Я уже сказал где ругается и почему.
Пожалуйста, не надо сюда постить кучу бесполезного кода.

-~{}~ 22.02.05 03:11:


http://docs.php.net/ru/language.references.html http://docs.php.net/en/language.references.html
Сорри, просто я это написал еще до ответа%)
 
Сверху