mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-27 04:24:45 +01:00
add minfo
This commit is contained in:
parent
7f026cf1b2
commit
7e8d837719
10
php_uv.c
10
php_uv.c
@ -4997,7 +4997,7 @@ static zend_function_entry uv_functions[] = {
|
|||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
PHP_FE(uv_tcp_simultaneous_accepts, NULL)
|
PHP_FE(uv_tcp_simultaneous_accepts, NULL)
|
||||||
#endif
|
#endif
|
||||||
/* pipe */
|
/* pipe */
|
||||||
PHP_FE(uv_pipe_init, arginfo_uv_pipe_init)
|
PHP_FE(uv_pipe_init, arginfo_uv_pipe_init)
|
||||||
PHP_FE(uv_pipe_bind, arginfo_uv_pipe_bind)
|
PHP_FE(uv_pipe_bind, arginfo_uv_pipe_bind)
|
||||||
PHP_FE(uv_pipe_open, arginfo_uv_pipe_open)
|
PHP_FE(uv_pipe_open, arginfo_uv_pipe_open)
|
||||||
@ -5090,7 +5090,15 @@ static zend_function_entry uv_functions[] = {
|
|||||||
|
|
||||||
PHP_MINFO_FUNCTION(uv)
|
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_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 = {
|
zend_module_entry uv_module_entry = {
|
||||||
|
Loading…
Reference in New Issue
Block a user