cvs: pear /Mail Mail.php /Mail/Mail smtp.php
| From: | Chuck Hagenbuch | Date: | Thu, 25 Jan 2007 18:39:01 +0000 |
| Subject: | cvs: pear /Mail Mail.php /Mail/Mail smtp.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44376@lists.php.net to get a copy of this message | ||
chagenbu Thu Jan 25 18:39:01 2007 UTC
Modified files:
/pear/Mail Mail.php
/pear/Mail/Mail smtp.php
Log:
Avoid &new so as not to throw unnecessary E_STRICT notices.
http://cvs.php.net/viewvc.cgi/pear/Mail/Mail.php?r1=1.17&r2=1.18&diff_format=u
Index: pear/Mail/Mail.php
diff -u pear/Mail/Mail.php:1.17 pear/Mail/Mail.php:1.18
--- pear/Mail/Mail.php:1.17 Fri Sep 15 03:41:18 2006
+++ pear/Mail/Mail.php Thu Jan 25 18:39:00 2007
@@ -16,7 +16,7 @@
// | Author: Chuck Hagenbuch <chuck@horde.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Mail.php,v 1.17 2006/09/15 03:41:18 jon Exp $
+// $Id: Mail.php,v 1.18 2007/01/25 18:39:00 chagenbu Exp $
require_once 'PEAR.php';
@@ -26,7 +26,7 @@
* useful in multiple mailer backends.
*
* @access public
- * @version $Revision: 1.17 $
+ * @version $Revision: 1.18 $
* @package Mail
*/
class Mail
@@ -151,7 +151,7 @@
foreach ($headers as $key => $value) {
if (strcasecmp($key, 'From') === 0) {
include_once 'Mail/RFC822.php';
- $parser = &new Mail_RFC822();
+ $parser = new Mail_RFC822();
$addresses = $parser->parseAddressList($value, 'localhost', false);
if (PEAR::isError($addresses)) {
return $addresses;
http://cvs.php.net/viewvc.cgi/pear/Mail/Mail/smtp.php?r1=1.28&r2=1.29&diff_format=u
Index: pear/Mail/Mail/smtp.php
diff -u pear/Mail/Mail/smtp.php:1.28 pear/Mail/Mail/smtp.php:1.29
--- pear/Mail/Mail/smtp.php:1.28 Wed Oct 11 20:18:08 2006
+++ pear/Mail/Mail/smtp.php Thu Jan 25 18:39:01 2007
@@ -42,7 +42,7 @@
* SMTP implementation of the PEAR Mail interface. Requires the Net_SMTP class.
* @access public
* @package Mail
- * @version $Revision: 1.28 $
+ * @version $Revision: 1.29 $
*/
class Mail_smtp extends Mail {
@@ -207,8 +207,8 @@
/* If we don't already have an SMTP object, create one. */
if (is_object($this->_smtp) === false) {
- $this->_smtp =& new Net_SMTP($this->host, $this->port,
- $this->localhost);
+ $this->_smtp = new Net_SMTP($this->host, $this->port,
+ $this->localhost);
/* If we still don't have an SMTP object at this point, fail. */
if (is_object($this->_smtp) === false) {