MDL-19698 deprecated assign new by ref in chat server - there are much worse problems left I think

This commit is contained in:
Petr Skoda 2010-07-19 08:32:19 +00:00
parent e4361ed601
commit 0e7de62880

View File

@ -335,7 +335,7 @@ EOD;
switch($type) { switch($type) {
case CHAT_SIDEKICK_BEEP: case CHAT_SIDEKICK_BEEP:
// Incoming beep // Incoming beep
$msg = &New stdClass; $msg = New stdClass;
$msg->chatid = $this->sets_info[$sessionid]['chatid']; $msg->chatid = $this->sets_info[$sessionid]['chatid'];
$msg->userid = $this->sets_info[$sessionid]['userid']; $msg->userid = $this->sets_info[$sessionid]['userid'];
$msg->groupid = $this->sets_info[$sessionid]['groupid']; $msg->groupid = $this->sets_info[$sessionid]['groupid'];
@ -421,7 +421,7 @@ EOD;
$this->sets_info[$sessionid]['lastmessageindex'] = $messageindex; $this->sets_info[$sessionid]['lastmessageindex'] = $messageindex;
} }
$msg = &New stdClass; $msg = New stdClass;
$msg->chatid = $this->sets_info[$sessionid]['chatid']; $msg->chatid = $this->sets_info[$sessionid]['chatid'];
$msg->userid = $this->sets_info[$sessionid]['userid']; $msg->userid = $this->sets_info[$sessionid]['userid'];
$msg->groupid = $this->sets_info[$sessionid]['groupid']; $msg->groupid = $this->sets_info[$sessionid]['groupid'];
@ -680,7 +680,7 @@ EOD;
return false; return false;
} }
$newconn = &New ChatConnection($handle); $newconn = New ChatConnection($handle);
$id = $this->new_ufo_id(); $id = $this->new_ufo_id();
$this->conn_ufo[$id] = $newconn; $this->conn_ufo[$id] = $newconn;
@ -753,7 +753,7 @@ EOD;
$info = $this->sets_info[$sessionid]; $info = $this->sets_info[$sessionid];
$DB->delete_records('chat_users', array('sid'=>$sessionid)); $DB->delete_records('chat_users', array('sid'=>$sessionid));
$msg = &New stdClass; $msg = New stdClass;
$msg->chatid = $info['chatid']; $msg->chatid = $info['chatid'];
$msg->userid = $info['userid']; $msg->userid = $info['userid'];
$msg->groupid = $info['groupid']; $msg->groupid = $info['groupid'];