public
Created

APC stat=0 and I mean it.

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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);

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.