diff options
author | Johannes Schlüter <johannes@php.net> | 2008-10-01 21:36:43 +0000 |
---|---|---|
committer | Johannes Schlüter <johannes@php.net> | 2008-10-01 21:36:43 +0000 |
commit | 80720205c022fc670655c0565e0808bc7aae6129 (patch) | |
tree | 852575ace1f7a1f583346fa0c6a0902055ee435a /ext/mysqlnd/php_mysqlnd.c | |
parent | fdcdf8c02b4bb41dca7506f166c80f41ac6fc3a9 (diff) | |
download | php-git-80720205c022fc670655c0565e0808bc7aae6129.tar.gz |
MFH: Improve order in MINFO output
Diffstat (limited to 'ext/mysqlnd/php_mysqlnd.c')
-rw-r--r-- | ext/mysqlnd/php_mysqlnd.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/ext/mysqlnd/php_mysqlnd.c b/ext/mysqlnd/php_mysqlnd.c index 40155ed31e..fa0dcf5549 100644 --- a/ext/mysqlnd/php_mysqlnd.c +++ b/ext/mysqlnd/php_mysqlnd.c @@ -107,18 +107,19 @@ PHP_MINFO_FUNCTION(mysqlnd) php_info_print_table_start(); php_info_print_table_header(2, "mysqlnd", "enabled"); php_info_print_table_row(2, "Version", mysqlnd_get_client_info()); + snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_cmd_buffer_size)); + php_info_print_table_row(2, "Command buffer size", buf); + snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_buffer_size)); + php_info_print_table_row(2, "Read buffer size", buf); + php_info_print_table_row(2, "Collecting statistics", MYSQLND_G(collect_statistics)? "Yes":"No"); + php_info_print_table_row(2, "Collecting memory statistics", MYSQLND_G(collect_memory_statistics)? "Yes":"No"); + php_info_print_table_end(); /* Print client stats */ + php_info_print_table_start(); php_info_print_table_header(2, "Client statistics", ""); mysqlnd_get_client_stats(&values); mysqlnd_minfo_print_hash(&values); - php_info_print_table_row(2, "Collecting statistics", MYSQLND_G(collect_statistics)? "Yes":"No"); - php_info_print_table_row(2, "Collecting memory statistics", MYSQLND_G(collect_memory_statistics)? "Yes":"No"); - - snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_cmd_buffer_size)); - php_info_print_table_row(2, "Command buffer size", buf); - snprintf(buf, sizeof(buf), "%ld", MYSQLND_G(net_read_buffer_size)); - php_info_print_table_row(2, "Read buffer size", buf); zval_dtor(&values); php_info_print_table_end(); |