Explorar o código

[Validator] switched to apc_exists()

Kris Wallsmith %!s(int64=14) %!d(string=hai) anos
pai
achega
3ff157c8a5
Modificáronse 1 ficheiros con 1 adicións e 4 borrados
  1. 1 4
      src/Symfony/Component/Validator/Mapping/Cache/ApcCache.php

+ 1 - 4
src/Symfony/Component/Validator/Mapping/Cache/ApcCache.php

@@ -15,10 +15,7 @@ class ApcCache implements CacheInterface
 
     public function has($class)
     {
-        $exists = false;
-        apc_fetch($this->prefix.$class, $exists);
-
-        return $exists;
+        return apc_exists($this->prefix.$class);
     }
 
     public function read($class)