[Tickets #3728] NEW: Registry not loading APIs in _fillAPICache()

bugs@bugs.horde.org bugs at bugs.horde.org
Sun Apr 2 19:40:32 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=3728
-----------------------------------------------------------------------
 Ticket             | 3728
 Created By         | tripp-track-horde-ticket-200604022233 at perspex.com
 Summary            | Registry not loading APIs in _fillAPICache()
 Queue              | Horde Framework Packages
 Version            | FRAMEWORK_3
 State              | Unconfirmed
 Priority           | 2. Medium
 Type               | Bug
 Owners             | 
-----------------------------------------------------------------------


tripp-track-horde-ticket-200604022233 at perspex.com (2006-04-02 19:40) wrote:

PHP 5.1.2 cgi, Zend 2.1.0, Zend Extension Manager 1.0.9, Zend Optimizer
2.6.2
Horde 3.1.1, Kronolith h3-2.1

In the section of _fillAPICache that calls "include_once $api", the API's
_services variable doesn't get propagated back out to _fillAPICache, so it
doesn't actually put anything in the cache.

I'm not a huge PHP programmer, but my hackish fix was to split the
lib/api.php file for the app (kronolith, in this case) into two files:
api.php, containing only the _services entries and an "include_once"
statement, and apiWrapper.php, included by the include_once statement in
api.php.

I then modified Horde/Registry.php to call "include $api" instead of
"include_once $api", and it seems to work.

I'm not attaching the patch, mainly because I'm pretty sure there's a more
"horde-ish" and/or "PHP-ish" way to do this, and I don't want to embarass
myself :-)




More information about the bugs mailing list