Remove useless pass-by-reference

pull/7203/head
Aleksander Machniak 4 years ago
parent 3478b002f8
commit fe796d4040

@ -476,7 +476,7 @@ class rcube_sieve
/**
* This is our own debug handler for connection
*/
public function debug_handler(&$sieve, $message)
public function debug_handler($sieve, $message)
{
rcube::write_log('sieve', preg_replace('/\r\n$/', '', $message));
}

@ -4564,7 +4564,7 @@ class rcube_imap extends rcube_storage
/**
* This is our own debug handler for the IMAP connection
*/
public function debug_handler(&$imap, $message)
public function debug_handler($imap, $message)
{
rcube::write_log('imap', $message);
}

@ -4093,7 +4093,7 @@ class rcube_imap_generic
}
if ($this->debug_handler) {
call_user_func_array($this->debug_handler, array(&$this, $message));
call_user_func_array($this->debug_handler, array($this, $message));
}
else {
echo "DEBUG: $message\n";

@ -377,7 +377,7 @@ class rcube_smtp
/**
* This is our own debug handler for the SMTP connection
*/
public function debug_handler(&$smtp, $message)
public function debug_handler($smtp, $message)
{
// catch AUTH commands and set anonymization flag for subsequent sends
if (preg_match('/^Send: AUTH ([A-Z]+)/', $message, $m)) {

Loading…
Cancel
Save