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

Bug #18422 Net_LDAP2_Error constructor calls non-static Net_LDAP2 errorMessage statically
Submitted: 2011-04-04 10:38 UTC
From: chealer Assigned: beni
Status: Closed Package: Net_LDAP2 (version SVN)
PHP Version: 5.3.6 OS:
Roadmaps: 2.1.0    
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 : 21 - 1 = ?

 
 [2011-04-04 10:38 UTC] chealer (Filipus Klutiero)
Description: ------------ NET_LDAP2_Error's constructor calls Net_LDAP2 errorMessage as if it was static; public function __construct($message = 'Net_LDAP2_Error', $code = NET_LDAP2_ERROR, $mode = PEAR_ERROR_RETURN, $level = E_USER_NOTICE, $debuginfo = null) { if (is_int($code)) { $this->PEAR_Error($message . ': ' . Net_LDAP2::errorMessage($code), $code, $mode, $level, $debuginfo); } else { $this->PEAR_Error("$message: $code", NET_LDAP2_ERROR, $mode, $level, $debuginfo); } } However I think the real problem is errorMessage() should be declared static.

Comments

 [2011-10-27 19:38 UTC] beni (Benedikt Hallinger)
-Status: Open +Status: Assigned -Assigned To: +Assigned To: beni
 [2011-10-27 19:38 UTC] beni (Benedikt Hallinger)
-Status: Assigned +Status: Closed -Roadmap Versions: +Roadmap Versions: 2.1.0
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. Fixed in Rev: 318473