]> granicus.if.org Git - php/commitdiff
Create module info function.
authorAndrei Zmievski <andrei@php.net>
Wed, 13 Sep 2000 20:58:19 +0000 (20:58 +0000)
committerAndrei Zmievski <andrei@php.net>
Wed, 13 Sep 2000 20:58:19 +0000 (20:58 +0000)
ext/wddx/php_wddx.h
ext/wddx/wddx.c

index b295de90da7d93a0c93557d2e97abdd44c91eab1..e2bb26dbb92c5737be14b65a3a81d8ef8518681b 100644 (file)
@@ -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
 
index dcabe8d6b3c1ebc0f69aa870cd0527d996916616..c1d580312798e9ddbbaf6c1b5e00975cb4766340 100644 (file)
@@ -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)