From 6ab04a6eef0750ea2d4365be7f9bcfd9caa33449 Mon Sep 17 00:00:00 2001 From: Pieter Hordijk Date: Wed, 15 May 2019 17:13:34 +0300 Subject: 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 --- ext/mysqlnd/php_mysqlnd.c | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'ext/mysqlnd/php_mysqlnd.c') diff --git a/ext/mysqlnd/php_mysqlnd.c b/ext/mysqlnd/php_mysqlnd.c index bf509724ca..276d8968cd 100644 --- a/ext/mysqlnd/php_mysqlnd.c +++ b/ext/mysqlnd/php_mysqlnd.c @@ -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); } /* }}} */ -- cgit v1.2.1