]> granicus.if.org Git - php/commitdiff
truly enable APC in phar
authorGreg Beaver <cellog@php.net>
Tue, 15 Apr 2008 13:52:02 +0000 (13:52 +0000)
committerGreg Beaver <cellog@php.net>
Tue, 15 Apr 2008 13:52:02 +0000 (13:52 +0000)
ext/phar/phar.c

index 50de3829f08bf0f7abb2c5c5eccdb28620e09083..e8247fe6653e01a5311153bfb44fdf9021c73c41 100644 (file)
@@ -2753,7 +2753,7 @@ PHP_MSHUTDOWN_FUNCTION(phar) /* {{{ */
                zend_compile_file = phar_orig_compile_file;
        } else 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);