com php-src: Don't completely delete the "enabled condition".: zend_accelerator_module.c
| From: | Dmitry Stogov | Date: | Thu, 14 Feb 2013 07:00:04 +0000 |
| Subject: | com php-src: Don't completely delete the "enabled condition".: zend_accelerator_module.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71560@lists.php.net to get a copy of this message | ||
Commit: 54a90b691f83c21ded23b52ad7699e493a577779
Author: Dmitry Stogov <dmitry@zend.com> Thu, 14 Feb 2013 11:00:04 +0400
Parents: 18904d18c75439e99350fd04b5ad7a6d6eb9ce73
Branches: PHP-5.5 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=54a90b691f83c21ded23b52ad7699e493a577779
Log:
Don't completely delete the "enabled condition".
Changed paths:
M zend_accelerator_module.c
Diff:
diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c
index 807c244..be0655a 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_bool(return_value, "accelerator_enabled", 1);
+ add_assoc_bool(return_value, "accelerator_enabled", 1 /*ZCG(startup_ok) &&
ZCSG(accelerator_enabled)*/);
add_assoc_bool(return_value, "cache_full", ZSMMG(memory_exhausted));
/* Memory usage statistics */