1
0
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:
Danack 2014-11-21 19:34:40 +00:00
parent ea5610963b
commit 0c9d4a62d5

View File

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