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

Bug #13116 Syntax Strict notice for references on constructors
Submitted: 2008-02-13 13:03 UTC Modified: 2010-12-24 06:13 UTC
From: tomdesp Assigned: aharvey
Status: Closed Package: Config (version 1.10.11)
PHP Version: 5.1.6 OS: all
Roadmaps: (Not assigned)    
Subscription  


 [2008-02-13 13:03 UTC] tomdesp (Thomas Despoix)
Description: ------------ Config constructor will try to to reference a container after new construction, thus will throw a E_STRICT error in PHP5. Let's recall it has no effect and is deprecated. Code should be updated as all other major packages have already been on this point. Test script: --------------- <?php error_reporting(E_STRICT); include "Config.php"; ?> Actual result: -------------- Strict standards: Assigning the return value of new by reference is deprecated in c:\wamp\php\PEAR\Config.php on line 80 Strict standards: Assigning the return value of new by reference is deprecated in c:\wamp\php\PEAR\Config.php on line 166 Strict standards: Assigning the return value of new by reference is deprecated in c:\wamp\php\PEAR\Config\Container.php on line 111

Comments

 [2010-10-28 10:07 UTC] fjfnaranjo (Francisco José Fernández Naranjo)
 [2010-12-24 06:13 UTC] aharvey (Adam Harvey)
-Status: Verified +Status: Closed -Assigned To: +Assigned To: aharvey
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. Thanks for the patch, Francisco!