johannes Wed Oct 1 21:36:43 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/mysqlnd php_mysqlnd.c
Log:
MFH: Improve order in MINFO output
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqlnd/php_mysqlnd.c?r1=1.1.2.6&r2=1.1.2.7&diff_format=u
Index: php-src/ext/mysqlnd/php_mysqlnd.c
diff -u php-src/ext/mysqlnd/php_mysqlnd.c:1.1.2.6
php-src/ext/mysqlnd/php_mysqlnd.c:1.1.2.7
--- php-src/ext/mysqlnd/php_mysqlnd.c:1.1.2.6 Wed May 7 15:14:26 2008
+++ php-src/ext/mysqlnd/php_mysqlnd.c Wed Oct 1 21:36:43 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_mysqlnd.c,v 1.1.2.6 2008/05/07 15:14:26 andrey Exp $ */
+/* $Id: php_mysqlnd.c,v 1.1.2.7 2008/10/01 21:36:43 johannes Exp $ */
#include "php.h"
#include "php_ini.h"
#include "mysqlnd.h"
@@ -107,18 +107,19 @@
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();
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php