From e66c8681c7e559c0893ec84ff16a4de3ea6d5f32 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Sun, 17 Mar 2013 11:56:04 +0400 Subject: [PATCH] Made opcache_get_status() return statistics during O+ restart --- ext/opcache/zend_accelerator_module.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 11dd7d3220..e6c6939274 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -474,14 +474,14 @@ static ZEND_FUNCTION(opcache_get_status) } #endif - if (!ZCG(enabled) || !accel_startup_ok || !ZCSG(accelerator_enabled)) { + if (!accel_startup_ok) { RETURN_FALSE; } array_init(return_value); /* Trivia */ - add_assoc_bool(return_value, "opcache_enabled", 1 /*ZCG(enabled) && accel_startup_ok && ZCSG(accelerator_enabled)*/); + add_assoc_bool(return_value, "opcache_enabled", ZCG(enabled) && ZCSG(accelerator_enabled)); add_assoc_bool(return_value, "cache_full", ZSMMG(memory_exhausted)); /* Memory usage statistics */ -- 2.40.0