Commit:    30c3a59668e4def67d29c86d5a43eda134714857
Author:    Pierrick Charron <pierr...@webstart.fr>         Wed, 13 Feb 2013 
14:25:38 -0500
Parents:   7334835143cf3a3907337e5f8b718252d870ea74
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=30c3a59668e4def67d29c86d5a43eda134714857

Log:
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

Changed paths:
  M  zend_accelerator_module.c


Diff:
diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c
index 41ae426..807c244 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 */


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to