Removed mysqlnd stats from phpinfo page

All information can already be retrieved using the APIs at https://www.php.net/manual/en/mysqlnd.stats.php. Closes https://bugs.php.net/bug.php?id=60594
This commit is contained in:
Pieter Hordijk 2019-05-15 17:13:34 +03:00 committed by Joe Watkins
parent a45192e183
commit 6ab04a6eef
No known key found for this signature in database
GPG key ID: F9BA0ADA31CBD89E
3 changed files with 3 additions and 38 deletions

View file

@ -51,29 +51,6 @@ mysqlnd_minfo_print_hash(zval *values)
/* }}} */
/* {{{ mysqlnd_minfo_dump_plugin_stats */
static int
mysqlnd_minfo_dump_plugin_stats(zval *el, void * argument)
{
struct st_mysqlnd_plugin_header * plugin_header = (struct st_mysqlnd_plugin_header *)Z_PTR_P(el);
if (plugin_header->plugin_stats.values) {
char buf[64];
zval values;
snprintf(buf, sizeof(buf), "%s statistics", plugin_header->plugin_name);
mysqlnd_fill_stats_hash(plugin_header->plugin_stats.values, plugin_header->plugin_stats.names, &values ZEND_FILE_LINE_CC);
php_info_print_table_start();
php_info_print_table_header(2, buf, "");
mysqlnd_minfo_print_hash(&values);
php_info_print_table_end();
zend_array_destroy(Z_ARR(values));
}
return ZEND_HASH_APPLY_KEEP;
}
/* }}} */
/* {{{ mysqlnd_minfo_dump_loaded_plugins */
static int
mysqlnd_minfo_dump_loaded_plugins(zval *el, void * buf)
@ -161,10 +138,6 @@ PHP_MINFO_FUNCTION(mysqlnd)
}
php_info_print_table_end();
/* Print client stats */
mysqlnd_plugin_apply_with_argument(mysqlnd_minfo_dump_plugin_stats, NULL);
}
/* }}} */