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:
Ralf Becker 2015-04-29 13:38:24 +00:00
parent c6ec098be8
commit a1d5e975d6
3 changed files with 9 additions and 2 deletions

View File

@ -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)
{

View File

@ -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

View File

@ -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;
},