From: Pierrick Charron Date: Wed, 13 Feb 2013 19:25:38 +0000 (-0500) Subject: Avoid unnecessary code and change the type of accelerator_enabled X-Git-Tag: php-5.5.0beta1~42^2~85^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=30c3a59668e4def67d29c86d5a43eda134714857;p=php Avoid unnecessary code and change the type of accelerator_enabled accelerator_enabled will always be true when accelerator_get_status returns an array. Also the accelerator_enabled should be a boolean and not a long --- diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c index 41ae426899..807c2446a4 100644 --- a/zend_accelerator_module.c +++ b/zend_accelerator_module.c @@ -470,7 +470,7 @@ static ZEND_FUNCTION(accelerator_get_status) array_init(return_value); /* Trivia */ - add_assoc_long(return_value, "accelerator_enabled", ZCG(startup_ok) && ZCSG(accelerator_enabled)); + add_assoc_bool(return_value, "accelerator_enabled", 1); add_assoc_bool(return_value, "cache_full", ZSMMG(memory_exhausted)); /* Memory usage statistics */