From 7e8d83771994bdf9e73b25241108beead48285b0 Mon Sep 17 00:00:00 2001 From: Shuhei Tanuma Date: Mon, 25 Jun 2012 00:28:31 +0900 Subject: [PATCH] add minfo --- php_uv.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/php_uv.c b/php_uv.c index 96f6fdd..ae5a6fe 100644 --- a/php_uv.c +++ b/php_uv.c @@ -4997,7 +4997,7 @@ static zend_function_entry uv_functions[] = { #ifdef PHP_WIN32 PHP_FE(uv_tcp_simultaneous_accepts, NULL) #endif - /* pipe */ + /* pipe */ PHP_FE(uv_pipe_init, arginfo_uv_pipe_init) PHP_FE(uv_pipe_bind, arginfo_uv_pipe_bind) PHP_FE(uv_pipe_open, arginfo_uv_pipe_open) @@ -5090,7 +5090,15 @@ static zend_function_entry uv_functions[] = { PHP_MINFO_FUNCTION(uv) { + char uv_version[20]; + sprintf(uv_version, "%d.%d",UV_VERSION_MAJOR, UV_VERSION_MINOR); + php_printf("PHP libuv Extension\n"); + php_info_print_table_start(); + php_info_print_table_header(2,"libuv Support", "enabled"); + php_info_print_table_row(2,"Version", PHP_UV_EXTVER); + php_info_print_table_row(2,"bundled libuv Version", uv_version); + php_info_print_table_end(); } zend_module_entry uv_module_entry = {