add minfo

This commit is contained in:
Shuhei Tanuma 2012-06-25 00:28:31 +09:00
parent 7f026cf1b2
commit 7e8d837719

View File

@ -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 = {