[dev] assertDriverConfig config file question

Michael M Slusarz slusarz at mail.curecanti.org
Sat Dec 10 18:08:23 PST 2005


Quoting "Kevin M. Myer" <kevin_myer at iu13.org>:

> I'm working on a memcached Cache driver but I'm having some trouble
> getting the driver config right.  The assertDriverConfig function in
> the Horde class takes the name of a config file to check as the fifth
> argument.  If I leave the default value for that argument, I get the
> following error when I hit the IMAP IMAPMailboxCache code:
>
> No configuration information specified for cache memcached. The file
> /var/www/htdocs/horde/config/../imp/config/conf.php should contain some
> $conf['cache']['params'] settings.
>
> Well, obviously it doesn't, because the settings are in
> horde/config/conf.php.  So how do I get the assertDriverConfig function
> to look there?  The assertDriverConfig check seems to work other places
> that the same syntax is used (like in the memcached SessionHandler
> code).  Is it possible that there's a bug in the IMP_MailboxCache
> constructor method, that wouldn't show up if file or ZPS cache was
> used, because no driver assertion occurs with those two?

You shouldn't be calling assertDriverConfig().  This function will  
only work if in Horde or called before the app is pushed on the stack.  
  If you are simply looking for config values in the $conf array, you  
should just be doing isset() checks in the driver constructor.

michael

_______________________________________
Michael Slusarz [slusarz at curecanti.org]


More information about the dev mailing list