diff --git a/ext/cache/backend/apc.c b/ext/cache/backend/apc.c index c16f42cab00..eac0eb5efb2 100644 --- a/ext/cache/backend/apc.c +++ b/ext/cache/backend/apc.c @@ -73,6 +73,12 @@ PHALCON_INIT_CLASS(Phalcon_Cache_Backend_Apc){ if (-1 == phalcon_cache_backend_is_apcu) { phalcon_cache_backend_is_apcu = zend_hash_exists(&module_registry, SS("apcu")); + if (phalcon_cache_backend_is_apcu) { + zend_constant *c; + if (zend_hash_find(EG(zend_constants), SS("APCU_APC_FULL_BC"), (void**)&c) == SUCCESS) { + phalcon_cache_backend_is_apcu = !zend_is_true(&c->value); + } + } } PHALCON_REGISTER_CLASS_EX(Phalcon\\Cache\\Backend, Apc, cache_backend_apc, phalcon_cache_backend_ce, phalcon_cache_backend_apc_method_entry, 0); diff --git a/ext/phalcon.c b/ext/phalcon.c index dc2eac8491a..a1f582bd0e4 100644 --- a/ext/phalcon.c +++ b/ext/phalcon.c @@ -807,6 +807,12 @@ zend_module_dep phalcon_deps[] = { #else ZEND_MOD_OPTIONAL("pcre") #endif + ZEND_MOD_OPTIONAL("apc") + ZEND_MOD_OPTIONAL("apcu") + ZEND_MOD_OPTIONAL("XCache") + ZEND_MOD_OPTIONAL("memcache") + ZEND_MOD_OPTIONAL("memcached") + ZEND_MOD_OPTIONAL("mongo") ZEND_MOD_OPTIONAL("filter") ZEND_MOD_OPTIONAL("iconv") ZEND_MOD_OPTIONAL("libxml")