Browse Source

[Validator] switched to apc_exists()

Kris Wallsmith 14 years ago
parent
commit
3ff157c8a5
1 changed files with 1 additions and 4 deletions
  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)