Skip to content

Commit

Permalink
change isSupported() checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikos M committed Oct 27, 2018
1 parent bbbf11b commit 478bd36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/php/adapters/UnicacheApcu.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ class UNICACHE_APCUCache extends UNICACHE_Cache
{
public static function isSupported( )
{
return (function_exists('apcu_fetch') && function_exists('apcu_store') && function_exists('apcu_delete'));
return extension_loaded('apcu');
//return (function_exists('apcu_fetch') && function_exists('apcu_store') && function_exists('apcu_delete'));
}

public function get( $key )
Expand Down
3 changes: 2 additions & 1 deletion src/php/adapters/UnicacheXCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ class UNICACHE_XCache extends UNICACHE_Cache
{
public static function isSupported( )
{
return (function_exists('xcache_get') && function_exists('xcache_set') && function_exists('xcache_unset'));
return extension_loaded('xcache');
//return (function_exists('xcache_get') && function_exists('xcache_set') && function_exists('xcache_unset'));
}

public function get( $key )
Expand Down

0 comments on commit 478bd36

Please sign in to comment.