Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.1.1

Bug #19821 Obsolete construction of NET_SMTP
Submitted: 2013-02-14 22:29 UTC
From: sgallego Assigned: doconnor
Status: Closed Package: Mail2
PHP Version: 5.4.0 OS: Ubuntu
Roadmaps: (Not assigned)    
Subscription  


 [2013-02-14 22:29 UTC] sgallego (Santi Gallego)
Description: ------------ "Assigning the return value of new by reference is deprecated." The construction of the "new Net_SMTP" can´t have the & in PHP 5.4. It´s located in the file Mail/smtp.php line 349 function &getSMTPObject() { if (is_object($this->_smtp) !== false) { return $this->_smtp; } include_once 'Net/SMTP.php'; $this->_smtp = &new Net_SMTP($this->host, $this->port, $this->localhost);- ----------- Test script: --------------- require_once 'Mail.php'; require_once 'Mail/mime.php'; $_mail = new Mail; $mail = $_mail->factory($backend, $backendargs);

Comments

 [2013-02-14 22:31 UTC] sgallego (Santi Gallego)
-Summary: Obsolete +Summary: Obsolete construction of NET_SMTP
 [2014-06-04 10:58 UTC] doconnor (Daniel O'Connor)
-Package: Mail +Package: Mail2 -Assigned To: +Assigned To: doconnor
Fixing in a fork.
 [2014-06-04 10:58 UTC] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.