mirror of
https://github.com/danog/dns.git
synced 2024-11-30 04:29:06 +01:00
Added extra check to ensure APC is functioning. This is apparently necessary as tested on PHP5.4 on OSX.
This commit is contained in:
parent
ea5610963b
commit
0c9d4a62d5
@ -106,7 +106,7 @@ class Client {
|
||||
$this->responseInterpreter = $responseInterpreter ?: new ResponseInterpreter;
|
||||
|
||||
if (!$cache) {
|
||||
if (extension_loaded('apc') && ini_get("apc.enabled")) {
|
||||
if (extension_loaded('apc') && ini_get("apc.enabled") && @apc_cache_info()) {
|
||||
$cache = new APCCache;
|
||||
}
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user