mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix #78202: Opcache stats for cache hits are capped at 32bit NUM
This commit is contained in:
commit
ead40e31e9
2
NEWS
2
NEWS
@ -2,6 +2,8 @@ PHP NEWS
|
||||
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||
?? ??? ????, PHP 7.4.0alpha3
|
||||
|
||||
- Opcache:
|
||||
. Fixed #78202 (Opcache stats for cache hits are capped at 32bit NUM). (cmb)
|
||||
|
||||
27 Jun 2019, PHP 7.4.0alpha2
|
||||
|
||||
|
@ -468,9 +468,9 @@ void zend_accel_info(ZEND_MODULE_INFO_FUNC_ARGS)
|
||||
char buf[32];
|
||||
php_info_print_table_row(2, "Startup", "OK");
|
||||
php_info_print_table_row(2, "Shared memory model", zend_accel_get_shared_model());
|
||||
snprintf(buf, sizeof(buf), ZEND_LONG_FMT, (zend_ulong)ZCSG(hits));
|
||||
snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hits));
|
||||
php_info_print_table_row(2, "Cache hits", buf);
|
||||
snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
|
||||
snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZSMMG(memory_exhausted)?ZCSG(misses):ZCSG(misses)-ZCSG(blacklist_misses));
|
||||
php_info_print_table_row(2, "Cache misses", buf);
|
||||
snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCG(accel_directives).memory_consumption-zend_shared_alloc_get_free_memory()-ZSMMG(wasted_shared_memory));
|
||||
php_info_print_table_row(2, "Used memory", buf);
|
||||
@ -484,17 +484,17 @@ void zend_accel_info(ZEND_MODULE_INFO_FUNC_ARGS)
|
||||
snprintf(buf, sizeof(buf), "%zu", (size_t)((char*)ZCSG(interned_strings).end - (char*)ZCSG(interned_strings).top));
|
||||
php_info_print_table_row(2, "Interned Strings Free memory", buf);
|
||||
}
|
||||
snprintf(buf, sizeof(buf), "%d", ZCSG(hash).num_direct_entries);
|
||||
snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_direct_entries);
|
||||
php_info_print_table_row(2, "Cached scripts", buf);
|
||||
snprintf(buf, sizeof(buf), "%d", ZCSG(hash).num_entries);
|
||||
snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).num_entries);
|
||||
php_info_print_table_row(2, "Cached keys", buf);
|
||||
snprintf(buf, sizeof(buf), "%d", ZCSG(hash).max_num_entries);
|
||||
snprintf(buf, sizeof(buf), "%" PRIu32, ZCSG(hash).max_num_entries);
|
||||
php_info_print_table_row(2, "Max keys", buf);
|
||||
snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCSG(oom_restarts));
|
||||
snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(oom_restarts));
|
||||
php_info_print_table_row(2, "OOM restarts", buf);
|
||||
snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCSG(hash_restarts));
|
||||
snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(hash_restarts));
|
||||
php_info_print_table_row(2, "Hash keys restarts", buf);
|
||||
snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ZCSG(manual_restarts));
|
||||
snprintf(buf, sizeof(buf), ZEND_ULONG_FMT, ZCSG(manual_restarts));
|
||||
php_info_print_table_row(2, "Manual restarts", buf);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user