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  


 [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