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

Bug #16438 Wrong var names in Net_LDAP2_SimpleFileSchemaCache
Submitted: 2009-07-14 18:42 UTC
From: wregen Assigned: beni
Status: Closed Package: Net_LDAP2 (version 2.0.4)
PHP Version: Irrelevant OS: All
Roadmaps: (Not assigned)    

 [2009-07-14 18:42 UTC] wregen (Wojciech Regenczuk)
Description: ------------ Line 50 of SimpleFileSchemaCache.php is: if (gettype($this->parameter[$key]) != gettype($value)) { should be: if (gettype($this->config[$key]) != gettype($value)) { Like 53 is: $this->parameter[$key] = $value; should be: $this->config[$key] = $value; Test script: --------------- <?php require_once 'Net/LDAP2.php'; $myCacheConfig = array( 'path' => 'Net_LDAP_Schema.cache', 'max_age' => 1200 ); $myCacheObject = new Net_LDAP2_SimpleFileSchemaCache($myCacheConfig); ?> Actual result: -------------- Fatal error: Call to undefined method Net_LDAP2_SimpleFileSchemaCache::getCore() in C:\Program Files\Apache Software Foundation\php-5.2.8\PEAR\Net\LDAP2\SimpleFileSchemaCache.php on line 51


 [2009-07-14 18:49 UTC] beni (Benedikt Hallinger)
-Status: Open +Status: Analyzed -Assigned To: +Assigned To: beni
 [2009-07-14 18:49 UTC] beni (Benedikt Hallinger)
-Roadmap Versions: +Roadmap Versions: 2.1.0
 [2009-07-14 18:54 UTC] beni (Benedikt Hallinger)
-Status: Analyzed +Status: Closed
Hello and thank you for this bug report. It has been fixed in current SVN, please checkout the latest version and let me know if it works for you now. Link to current file:
 [2009-07-14 19:25 UTC] wregen (Wojciech Regenczuk)
-Summary: Wrong paramener names in Net_LDAP2_SimpleFileSchemaCache +Summary: Wrong var names in Net_LDAP2_SimpleFileSchemaCache
That was fast. Thank you!