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

Bug #17388 Deprecated assigning the return value of new by reference
Submitted: 2010-05-11 12:10 UTC Modified: 2011-01-14 20:20 UTC
From: jimmywar Assigned: alec
Status: Feedback Package: Mail
PHP Version: 5.2.6 OS: Linux Centos 5.1
Roadmaps: 1.2.1    
Subscription  


 [2010-05-11 12:10 UTC] jimmywar (James Warshawsky)
Description: ------------ Error detected! [2048] Assigning the return value of new by reference is deprecated Fatal error on line 349 in file /usr/share/pear/PEAR/Mail/smtp.php Test script: --------------- include_once('Mail.php'); include_once('Mail/mime.php'); include_once('Mail/smtp.php'); Expected result: ---------------- No warning Actual result: -------------- Warning on line 349

Comments

 [2010-05-11 12:25 UTC] alec (Aleksander Machniak)
-Package: Mail_Mime +Package: Mail
 [2010-05-11 12:27 UTC] alec (Aleksander Machniak)
-Summary: E_STRICT violates with MailMime +Summary: Deprecated assigning the return value of new by reference
 [2010-05-11 12:28 UTC] cweiske (Christian Weiske)
This is something that cannot be fixed when PHP4 compatibilty shall be kept.
 [2011-01-14 20:03 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec -Roadmap Versions: +Roadmap Versions: 1.2.1
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.
 [2011-01-14 20:08 UTC] chagenbu (Chuck Hagenbuch)
-Status: Closed +Status: Feedback
Alec, what did you change here? Has there been a change in breaking BC without a major version?
 [2011-01-14 20:20 UTC] alec (Aleksander Machniak)
I think this doesn't breaks BC. See the package source, there's no '&new' anywhere.