Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test failures with APCu 4.0.2 #1234

Merged
merged 2 commits into from Sep 17, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ext/cache/backend/apc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
6 changes: 6 additions & 0 deletions ext/phalcon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down