Skip to content

Instantly share code, notes, and snippets.

@chx
Created July 7, 2012 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chx/3067643 to your computer and use it in GitHub Desktop.
Save chx/3067643 to your computer and use it in GitHub Desktop.
APC stat=0 and I mean it.
Index: apc.c
===================================================================
--- apc.c (revision 326528)
+++ apc.c (working copy)
@@ -34,6 +34,7 @@
#include "apc.h"
#include "apc_zend.h"
#include "apc_cache.h"
+#include "apc_globals.h"
#include "php.h"
#if HAVE_PCRE || HAVE_BUNDLED_PCRE
@@ -307,6 +308,9 @@
assert(filename && fileinfo);
+ if(APCG(fpstat)==0) {
+ return 0;
+ }
wrapper = php_stream_locate_url_wrapper(filename, &path_for_open, 0 TSRMLS_CC);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment