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

Bug #5459 Return-by-reference errors
Submitted: 2005-09-19 14:37 UTC Modified: 2008-03-24 15:44 UTC
From: pmjones Assigned: dufuz
Status: Closed Package: DB_ldap
PHP Version: 5.1.0 OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2005-09-19 14:37 UTC] pmjones
Description: ------------ PHP Notice: Only variable references should be returned by reference in /pear/DB/ldap.php on line 606 PHP Notice: Only variable references should be returned by reference in /pear/DB/ldap.php on line 767 To fix, change line 606 from... return new LDAP_result($this, $result); to two lines: $ldap_result = new LDAP_result($this, $result); return $ldap_result; Then change lin 767 (now 768) from: return(parent::getAll($query, $data, $fetchmode)); to two lines: $result = parent::getAll($query, $data, $fetchmode); return $result;

Comments

 [2008-03-24 15:44 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This bug has been fixed in CVS. 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.