From: Greg Beaver Date: Tue, 15 Apr 2008 13:52:02 +0000 (+0000) Subject: truly enable APC in phar X-Git-Tag: RELEASE_2_0_0b1~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a2ac90cde8ea00c706c5373bb43ebb9335b5ad6;p=php truly enable APC in phar --- diff --git a/ext/phar/phar.c b/ext/phar/phar.c index 50de3829f0..e8247fe665 100644 --- a/ext/phar/phar.c +++ b/ext/phar/phar.c @@ -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);