6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
7/27/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3728] Registry not loading APIs in _fillAPICache()
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . . .. .. . [__)| | |\ /| | [__)|__|\__| \/ |/\|
Comment
> 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 :-)
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers