diff options
Diffstat (limited to 'ext/mysqlnd/php_mysqlnd.c')
-rw-r--r-- | ext/mysqlnd/php_mysqlnd.c | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/ext/mysqlnd/php_mysqlnd.c b/ext/mysqlnd/php_mysqlnd.c index 53a85701d1..276d8968cd 100644 --- a/ext/mysqlnd/php_mysqlnd.c +++ b/ext/mysqlnd/php_mysqlnd.c @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 2006-2018 The PHP Group | + | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -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); } /* }}} */ @@ -363,12 +336,3 @@ ZEND_TSRMLS_CACHE_DEFINE() ZEND_GET_MODULE(mysqlnd) #endif /* }}} */ - -/* - * Local variables: - * tab-width: 4 - * c-basic-offset: 4 - * End: - * vim600: noet sw=4 ts=4 fdm=marker - * vim<600: noet sw=4 ts=4 - */ |