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

Bug #17135 Deprecated use of new and reference
Submitted: 2010-02-18 21:59 UTC
From: ktyler Assigned: doconnor
Status: Closed Package: Net_POP3 (version 1.3.7)
PHP Version: 5.3.1 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 + 21 = ?

 
 [2010-02-18 21:59 UTC] ktyler (Keith Tyler)
Description: ------------ Under PHP 5.3.* use of Net/POP3 generates a deprecation warning on use of reference assignment with "new". Offending line is: $this->_socket =& new Net_Socket(); Test script: --------------- include("Net/POP3.php"); Expected result: ---------------- No deprecation warnings Actual result: -------------- Deprecated: Assigning the return value of new by reference is deprecated in C:\PHP\PEAR\Net\POP3.php on line 156

Comments

 [2010-02-19 03:02 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
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.