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 19:37 UTC
From: pmjones Assigned: dufuz
Status: Closed Package: DB_ldap
PHP Version: 5.1.0 OS: Irrelevant
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 : 8 + 7 = ?

 
 [2005-09-19 19: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 19: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.