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

Bug #295 getAuthAdminObjectByName errors in latest CVS
Submitted: 2003-11-25 15:26 UTC
From: liveuser at bago dot org Assigned: arnaud
Status: Closed Package: LiveUser
PHP Version: Irrelevant OS:
Roadmaps: (Not assigned)    
Subscription  


 [2003-11-25 15:26 UTC] liveuser at bago dot org
Description: ------------ Looking at the LiveUser getAuthAdminObjectByName function code I found: $con =& new $classname($container, array('type'=>$container['type'])); So the second parameter always contain an array with a single value: type. Now in the constructor of the Admin/Auth/Container/DB.php function &LiveUser_Admin_Auth_Container_DB(&$connectOptions, $conf) I found that the code try to read $conf['authTable'] and more properties overwriting the first part of the constructor where it assign to the object properties the values from the connectOptions array. $conf['authTable'] will never be something different from null (as you can see in the second line of this example) and will overwrite the default authTable or the authTable defined with the value from the connectOptions array.

Comments

 [2003-12-04 15:24 UTC] arnaud
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better. this behaviour has changed in cvs but is not completed yet. Closing as it is no longer relevant.