mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 17:48:56 +01:00
fix PHP Fatal error "Class APCIterator not found" during installation, caused by for apc.enable_cli=0, but APC(u) installed
This commit is contained in:
parent
c6ec098be8
commit
a1d5e975d6
@ -134,6 +134,13 @@ class egw_cache_apc extends egw_cache_provider_check implements egw_cache_provid
|
||||
*/
|
||||
function flush(array $keys)
|
||||
{
|
||||
// APC >= 3.1.1, but also seems to be missing if apc is disabled eg. for cli
|
||||
if (!class_exists('APCIterator'))
|
||||
{
|
||||
if (function_exists('apc_clear_cache')) apc_clear_cache ('user');
|
||||
|
||||
return false;
|
||||
}
|
||||
//error_log(__METHOD__."(".array2string($keys).")");
|
||||
foreach(new APCIterator('user', $preg='/^'.preg_quote(self::key($keys).'/')) as $item)
|
||||
{
|
||||
|
@ -39,7 +39,7 @@ egw.extend('debug', egw.MODULE_GLOBAL, function(_app, _wnd) {
|
||||
* 4 = -- " -- plus "log"
|
||||
* 5 = -- " -- plus a stacktrace
|
||||
*/
|
||||
var DEBUGLEVEL = 3;
|
||||
var DEBUGLEVEL = 4;
|
||||
|
||||
/**
|
||||
* Log-level for local storage and error-display in GUI
|
||||
|
@ -109,7 +109,7 @@ egw.extend('images', egw.MODULE_GLOBAL, function() {
|
||||
return this.image(_name.replace(/.(png|gif|jpg)$/i,''), _app);
|
||||
}
|
||||
if(matches != null) tries[_app + " (matched)"]= matches;
|
||||
egw.debug("log",'egw.image("'+_name+'", "'+_app+'") image NOT found! Tried ', tries);
|
||||
//egw.debug("log",'egw.image("'+_name+'", "'+_app+'") image NOT found! Tried ', tries);
|
||||
return null;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user