From 1a2ac90cde8ea00c706c5373bb43ebb9335b5ad6 Mon Sep 17 00:00:00 2001 From: Greg Beaver Date: Tue, 15 Apr 2008 13:52:02 +0000 Subject: [PATCH] truly enable APC in phar --- 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 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); -- 2.50.1