Summary | Xcache breaks PHP CLI scripts |
Queue | Horde Framework Packages |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | stan (at) hisken (dot) net |
Created | 06/28/2011 (5121 days ago) |
Due | |
Updated | 10/15/2011 (5012 days ago) |
Assigned | |
Resolved | 10/15/2011 (5012 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
State ⇒ Resolved
[jan] Don't use Xcache in CLI scripts (
Bug #10288).We probably need to exclude other drivers that don't support CLI too.
2 files changed, 9 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/f69a464965be1856332b09712ef9b5f09d3c78dc
Priority ⇒ 2. Medium
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Xcache breaks PHP CLI scripts
Type ⇒ Bug
State ⇒ Unconfirmed
I am using the Horde Framework version 4.0.6, and set up Xcache as the
caching backend. I found out my Horde logs were being spammed by the
following messages:
----
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_get():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 95 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_unset():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 100 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_unset():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 101 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
2011-06-28T14:43:57+02:00 WARN: HORDE PHP ERROR: xcache_get():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 39 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
2011-06-28T14:43:57+02:00 WARN: HORDE [horde] PHP ERROR: xcache_set():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 51 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
2011-06-28T14:43:57+02:00 WARN: HORDE [horde] PHP ERROR: xcache_set():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 51 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
2011-06-28T14:43:58+02:00 WARN: HORDE [horde] PHP ERROR: xcache_set():
xcache.var_size is either 0 or too small to enable var data caching
[pid 13972 on line 51 of
"/usr/share/php/Horde/Cache/Storage/Xcache.php"]
------
These messages occured only when running one of Horde's CLI scripts in
/usr/bin. Caching via the web server seems to work fine. It turned out
that Xcache doesn't support PHP CLI, and won't do in the future. This
seems to generate these notices.
http://xcache.lighttpd.net/ticket/228
When I disable the Xcache backend in Horde, PHP CLI scripts like
horde-alarms run just fine without logfile spamming.
I tried a workaround by disabling Xcache in php.ini for the CLI, but
that generates just another obvious error:
---
PHP Fatal error: Call to undefined function xcache_set() in
/usr/share/php/Horde/Cache/Storage/Xcache.php on line 51
---
The solution would propably for Horde be to disable Xcache when it is
being called from the CLI.
Thank you,
Stan Hisken