[Tickets #10288] Xcache breaks PHP CLI scripts

bugs at horde.org bugs at horde.org
Tue Jun 28 12:53:08 UTC 2011


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

Ticket URL: http://bugs.horde.org/ticket/10288
------------------------------------------------------------------------------
  Ticket             | 10288
  Created By         | stan at hisken.net
  Summary            | Xcache breaks PHP CLI scripts
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


stan at hisken.net (2011-06-28 12:53) wrote:

Hello,

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






More information about the bugs mailing list