From 94846549f5385d0adeb0ed1b952cb0b5a8af9cd2 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Sat, 26 Apr 2008 23:16:49 +0000 Subject: [PATCH] fix APC compile hook interception, now APC actually caches files --- ext/phar/phar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 7b285773c4..9629eb62be 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -2914,7 +2914,7 @@ PHP_MINIT_FUNCTION(phar) /* {{{ */ phar_has_zlib = zend_hash_exists(&module_registry, "zlib", sizeof("zlib")); if (zend_hash_exists(&module_registry, "apc", sizeof("apc"))) { zval magic; - if (zend_get_constant("\000apc_magic", sizeof("\000apc_magic"), &magic TSRMLS_CC)) { + if (zend_get_constant("\000apc_magic", sizeof("\000apc_magic")-1, &magic TSRMLS_CC)) { compile_hook *set_compile_hook; set_compile_hook = (compile_hook *) Z_LVAL(magic); -- 2.50.1