소스 검색

[Validator] switched to apc_exists()

Kris Wallsmith 14 년 전
부모
커밋
3ff157c8a5
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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)