1
0
mirror of https://github.com/php/php-src.git synced 2026-04-22 23:48:14 +02:00

Made opcache_get_status() return statistics during O+ restart

This commit is contained in:
Dmitry Stogov
2013-03-17 11:56:04 +04:00
parent 0b8b6a727d
commit e66c8681c7
+2 -2
View File
@@ -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 */