[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php,
From: |
powerstat |
Subject: |
[Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8 |
Date: |
Thu, 5 May 2005 16:32:00 +0200 |
Update of nntp/inc
Modified Files:
Branch: MAIN
class.nntp.inc.php lines: +7 -7
class.mail.inc.php lines: +14 -14
Log Message:
Fixes deprecated (since 2003) call by reference functions calls.
====================================================
Index: nntp/inc/class.nntp.inc.php
diff -u nntp/inc/class.nntp.inc.php:1.8 nntp/inc/class.nntp.inc.php:1.9
--- nntp/inc/class.nntp.inc.php:1.8 Sat Sep 14 12:17:19 2002
+++ nntp/inc/class.nntp.inc.php Thu May 5 14:32:50 2005
@@ -108,7 +108,7 @@
$retval['count'] = Array();
$retval['last'] = Array();
- if (!$this->msg2socket('LIST','^215',&$response))
+ if (!$this->msg2socket('LIST','^215',$response))
{
return 0;
}
@@ -201,7 +201,7 @@
function xhdr($field,$first,$last)
{
- if (!$this->msg2socket('XHDR '.$field.'
'.$first.'-'.$last,'^221',&$response))
+ if (!$this->msg2socket('XHDR '.$field.'
'.$first.'-'.$last,'^221',$response))
{
return 0;
}
@@ -281,11 +281,11 @@
function get_next_article_number($msgnum)
{
$retval = array();
- if (!$this->msg2socket('STAT
'.$msgnum,'^223',&$response))
+ if (!$this->msg2socket('STAT
'.$msgnum,'^223',$response))
{
return 0;
}
- if (!$this->msg2socket('NEXT','^223',&$response))
+ if (!$this->msg2socket('NEXT','^223',$response))
{
return 0;
}
@@ -297,11 +297,11 @@
function get_prev_article_number($msgnum)
{
$retval = array();
- if (!$this->msg2socket('STAT
'.$msgnum,'^223',&$response))
+ if (!$this->msg2socket('STAT
'.$msgnum,'^223',$response))
{
return 0;
}
- if (!$this->msg2socket('LAST','^223',&$response))
+ if (!$this->msg2socket('LAST','^223',$response))
{
return 0;
}
====================================================
Index: nntp/inc/class.mail.inc.php
diff -u nntp/inc/class.mail.inc.php:1.7 nntp/inc/class.mail.inc.php:1.8
--- nntp/inc/class.mail.inc.php:1.7 Sun Jan 27 00:34:37 2002
+++ nntp/inc/class.mail.inc.php Thu May 5 14:32:49 2005
@@ -207,7 +207,7 @@
function mode_reader()
{
- return $this->msg2socket('mode
reader',"^20[01]",&$response);
+ return $this->msg2socket('mode
reader',"^20[01]",$response);
}
function mail_open($server,$port,$user='',$pass='')
@@ -220,11 +220,11 @@
if ($user <> '' && $pass <> '')
{
- if (!$this->msg2socket('authinfo user
'.$user,"^381",&$response))
+ if (!$this->msg2socket('authinfo user
'.$user,"^381",$response))
{
return 0;
}
- if (!$this->msg2socket('authinfo pass
'.$pass,"^281",&$response))
+ if (!$this->msg2socket('authinfo pass
'.$pass,"^281",$response))
{
return 0;
}
@@ -235,7 +235,7 @@
}
if(isset($this->mailbox) && $this->mailbox)
{
- return $this->msg2socket('group
'.$this->mailbox,"^211",&$response);
+ return $this->msg2socket('group
'.$this->mailbox,"^211",$response);
}
else
{
@@ -248,7 +248,7 @@
$str = 'group '.$this->mailbox;
$expected_response = "^211";
- if
(!$this->msg2socket($str,$expected_response,&$response))
+ if
(!$this->msg2socket($str,$expected_response,$response))
{
return 0;
}
@@ -262,7 +262,7 @@
{
if ($this->type == 'nntp')
{
- if (!$this->msg2socket('group
'.$this->mailbox,"^211",&$response))
+ if (!$this->msg2socket('group
'.$this->mailbox,"^211",$response))
{
return 0;
}
@@ -277,7 +277,7 @@
{
if ($this->type == 'nntp')
{
- if (!$this->msg2socket('group
'.$this->mailbox,"^211",&$response))
+ if (!$this->msg2socket('group
'.$this->mailbox,"^211",$response))
{
return 0;
}
@@ -288,7 +288,7 @@
}
}
- function create_header($line,$header,$line2='')
+ function create_header($line,&$header,$line2='')
{
$thead = explode(':',$line);
$key = trim($thead[0]);
@@ -339,7 +339,7 @@
break;
}
- if
(!$this->msg2socket($str,$expected_response,&$response))
+ if
(!$this->msg2socket($str,$expected_response,$response))
{
return 0;
}
@@ -350,7 +350,7 @@
{
break;
}
-
$this->create_header($line,&$this->header,'True');
+
$this->create_header($line,$this->header,'True');
}
if ($this->type == 'pop')
{
@@ -921,7 +921,7 @@
return $struct;
}
- function
split_mime_msg_parts($body,$boundary,$part,$sub_header,$sub_body)
+ function
split_mime_msg_parts($body,$boundary,$part,&$sub_header,&$sub_body)
{
$parts = explode('--'.$boundary,$body);
$lines = explode("\n",$parts[$part]);
@@ -1001,8 +1001,8 @@
$this->split_mime_msg_parts($this->body,$this->parse_boundary(
$this->header['Content-Type']
),
- $i,&$this->hsub[$i],
- &$this->bsub[$i]);
+ $i,$this->hsub[$i],
+ $this->bsub[$i]);
$this->sparts[$i] =
$this->build_mime_structure($this->hsub[$i]);
}
}
- [Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8, powerstat, 2005/05/16
- [Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8, powerstat, 2005/05/16
- [Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8,
powerstat <=
- [Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8, powerstat, 2005/05/17
- Prev by Date:
[Phpgroupware-cvs] phpgroupware/ipc_test_suite/inc class.ipc_test_suite.inc.php, 1.1 class.ipc_test_suite_ui.inc.php, 1.1 class.ipc_test_suite_addressbook.inc.php, 1.1 class.ipc_test_suite_bookmarks.inc.php, 1.1 class.ipc_test_suite_notes.inc.php, 1.1 class.ipc_test_suite_todo.inc.php, 1.1 class.ipc_test_suite_calendar.inc.php, 1.1 class.ipc_test_suite_email.inc.php, 1.1
- Next by Date:
[Phpgroupware-cvs] property/setup tables_update.inc.php, 1.8 setup.inc.php, 1.15 tables_current.inc.php, 1.28 default_records.inc.php, 1.12
- Previous by thread:
[Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8
- Next by thread:
[Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8
- Index(es):