Re: 0.16.2 tomorrow
Lukas Smith <[email protected]>
| Newsgroups | gmane.comp.php.pear.liveuser |
|---|---|
| Organization | BackendMedia GbR |
| Message-ID | <[email protected]> |
Lukas Smith wrote: > Benedikt Laube wrote: > >> Hi Lukas, >> >> I found a workaround. It seems that LU does something with the db >> object. Instantiating the db object *after* the LU object in a page >> fixes the problem for me. >> >> If you have a more elegant solution, pls let me know! > > > Hmm .. might be some reference issue. I looked at the code some more. When loging out LiveUser calls the disconnect() method. This method disconnects all ressources that LiveUser opened. Since you pass in a dsn string, LiveUser determines it needs to close the database connection. PEAR DB is kinda stupid since it is then unable to reconnect ondemand anymore. MDB/MDB2 create a connection ondemand. However we have the same problem with the XML and other containers, so I will disable the disconnect method call for now in logout(). regards, Lukas Smith [email protected] _______________________________ BackendMedia www.backendmedia.com [email protected] Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07