Permalink
Browse files

bug fix to solve fatal error: apc_exist() does not exist

  • Loading branch information...
1 parent a890fe1 commit 60f0aa95737b32c5ac519811a720de5a948adb08 uran1980 committed Jan 4, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/Doctrine/Common/Cache/ApcCache.php
@@ -47,6 +47,10 @@ protected function doFetch($id)
*/
protected function doContains($id)
{
+ if ( ! function_exists('apc_exists') ) {
+ return (boolean) apc_fetch($id);
+ }
+
return apc_exists($id);
}

0 comments on commit 60f0aa9

Please sign in to comment.