Skip to content

Commit

Permalink
Avoid &new so as not to throw unnecessary E_STRICT notices.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.php.net/repository/pear/packages/Mail/trunk@228081 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information
Chuck Hagenbuch committed Jan 25, 2007
1 parent 23b190a commit 7a01670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function prepareHeaders($headers)
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;
Expand Down
4 changes: 2 additions & 2 deletions Mail/smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ function send($recipients, $headers, $body)

/* 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) {
Expand Down

0 comments on commit 7a01670

Please sign in to comment.