diff options
author | Andrei Zmievski <andrei@php.net> | 2000-09-13 20:58:19 +0000 |
---|---|---|
committer | Andrei Zmievski <andrei@php.net> | 2000-09-13 20:58:19 +0000 |
commit | a6bb6f5df3909915eb4f88a8a6d1af5d657d17d5 (patch) | |
tree | 27399ffc5e00ca3b3ff80730c82d6a8fb5f766d5 | |
parent | 409e2e7e984e98064192f9537a77e87bd09fc8e7 (diff) | |
download | php-git-a6bb6f5df3909915eb4f88a8a6d1af5d657d17d5.tar.gz |
Create module info function.
-rw-r--r-- | ext/wddx/php_wddx.h | 2 | ||||
-rw-r--r-- | ext/wddx/wddx.c | 20 |
2 files changed, 18 insertions, 4 deletions
diff --git a/ext/wddx/php_wddx.h b/ext/wddx/php_wddx.h index b295de90da..e2bb26dbb9 100644 --- a/ext/wddx/php_wddx.h +++ b/ext/wddx/php_wddx.h @@ -36,8 +36,6 @@ #include "xmlparse.h" -extern int php_minit_wddx(INIT_FUNC_ARGS); - extern zend_module_entry wddx_module_entry; #define wddx_module_ptr &wddx_module_entry diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index dcabe8d6b3..c1d5803127 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -114,8 +114,18 @@ function_entry wddx_functions[] = { {NULL, NULL, NULL} }; +PHP_MINIT_FUNCTION(wddx); +PHP_MINFO_FUNCTION(wddx); + zend_module_entry wddx_module_entry = { - "wddx", wddx_functions, php_minit_wddx, NULL, NULL, NULL, NULL, STANDARD_MODULE_PROPERTIES + "wddx", + wddx_functions, + PHP_MINIT(wddx), + NULL, + NULL, + NULL, + PHP_MINFO(wddx), + STANDARD_MODULE_PROPERTIES }; /* }}} */ @@ -224,7 +234,7 @@ void php_wddx_destructor(wddx_packet *packet) /* {{{ php_minit_wddx */ -int php_minit_wddx(INIT_FUNC_ARGS) +PHP_MINIT_FUNCTION(wddx) { le_wddx = register_list_destructors(php_wddx_destructor, NULL); @@ -232,6 +242,12 @@ int php_minit_wddx(INIT_FUNC_ARGS) } /* }}} */ +PHP_MINFO_FUNCTION(wddx) +{ + php_info_print_table_start(); + php_info_print_table_row(2, "WDDX Support", "enabled" ); + php_info_print_table_end(); +} /* {{{ php_wddx_add_chunk_ex */ void php_wddx_add_chunk_ex(wddx_packet *packet, char *str, int length) |