]> granicus.if.org Git - php/commitdiff
fix APC compile hook interception, now APC actually caches files
authorGreg Beaver <cellog@php.net>
Sat, 26 Apr 2008 23:16:49 +0000 (23:16 +0000)
committerGreg Beaver <cellog@php.net>
Sat, 26 Apr 2008 23:16:49 +0000 (23:16 +0000)
ext/phar/phar.c

index 7b285773c4b8e6d9bdbb9b52eadd5abba222d8fe..9629eb62bed0ae63cd3891301665e19f710b19ab 100644 (file)
@@ -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);