[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 <=
- [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, 2005/05/17
- Prev by Date:
[Phpgroupware-cvs] phpsysinfo/includes/lang tw.php, 1.2 tr.php, 1.2 sv.php, 1.2 kr.php, 1.2 ro.php, 1.2 pl.php, 1.2 sk.php, 1.2 big5.php, 1.2 is.php, 1.2 fi.php, 1.2 ca.php, 1.2 he.php, 1.2 id.php, 1.2 hu.php, 1.2 eu.php, 1.2 ct.php, 1.2 it.php, 1.2 no.php, 1.2 lt.php, 1.2 nl.php, 1.2 br.php, 1.2 fr.php, 1.2 et.php, 1.2 es.php, 1.2 da.php, 1.2 cs.php, 1.2 de.php, 1.2 en.php, 1.2
- Next by Date:
[Phpgroupware-cvs] addressbook/inc class.uicatalog_contact_comm_descr.inc.php, 1.3 class.uicatalog_contact_addr_type.inc.php, 1.3 class.uifields.inc.php, 1.13 class.uiXport.inc.php, 1.21 class.uicatalog_contact_note_type.inc.php, 1.3 class.uicategorize_contacts.inc.php, 1.3 class.uivcard.inc.php, 1.12 class.uicatalog_contact_comm_type.inc.php, 1.3 class.uiaddressbook_prefs.inc.php, 1.3 class.widget_lists.inc.php, 1.3 class.uiaddressbook.inc.php, 1.58
- Previous by thread:
[Phpgroupware-cvs] phpsysinfo/includes/lang tw.php, 1.2 tr.php, 1.2 sv.php, 1.2 kr.php, 1.2 ro.php, 1.2 pl.php, 1.2 sk.php, 1.2 big5.php, 1.2 is.php, 1.2 fi.php, 1.2 ca.php, 1.2 he.php, 1.2 id.php, 1.2 hu.php, 1.2 eu.php, 1.2 ct.php, 1.2 it.php, 1.2 no.php, 1.2 lt.php, 1.2 nl.php, 1.2 br.php, 1.2 fr.php, 1.2 et.php, 1.2 es.php, 1.2 da.php, 1.2 cs.php, 1.2 de.php, 1.2 en.php, 1.2
- Next by thread:
[Phpgroupware-cvs] nntp/inc class.nntp.inc.php, 1.9 class.mail.inc.php, 1.8
- Index(es):