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

Bug #17388 Deprecated assigning the return value of new by reference
Submitted: 2010-05-11 17:10 UTC
From: jimmywar Assigned: alec
Status: Closed Package: Mail2
PHP Version: 5.2.6 OS: Linux Centos 5.1
Roadmaps: (Not assigned)    
Subscription  


 [2010-05-11 17: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 17:25 UTC] alec (Aleksander Machniak)
-Package: Mail_Mime +Package: Mail
 [2010-05-11 17:27 UTC] alec (Aleksander Machniak)
-Summary: E_STRICT violates with MailMime +Summary: Deprecated assigning the return value of new by reference
 [2010-05-11 17:28 UTC] cweiske (Christian Weiske)
This is something that cannot be fixed when PHP4 compatibilty shall be kept.
 [2011-01-15 01: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-15 01: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-15 01:20 UTC] alec (Aleksander Machniak)
I think this doesn't breaks BC. See the package source, there's no '&new' anywhere.
 [2014-06-04 10:59 UTC] doconnor (Daniel O'Connor)
-Package: Mail +Package: Mail2
 [2014-06-04 11:00 UTC] doconnor (Daniel O'Connor)
-Status: Feedback +Status: Closed -Roadmap Versions: 1.2.1 +Roadmap Versions:
Fixed in Mail2 fork.