cvs: php4 /ext/wddx php_wddx.h wddx.c
| From: | Andrei Zmievski | Date: | Wed, 13 Sep 2000 20:58:19 +0000 |
| Subject: | cvs: php4 /ext/wddx php_wddx.h wddx.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1752@lists.php.net to get a copy of this message | ||
andrei Wed Sep 13 13:58:19 2000 EDT
Modified files:
/php4/ext/wddx php_wddx.h wddx.c
Log:
Create module info function.
Index: php4/ext/wddx/php_wddx.h
diff -u php4/ext/wddx/php_wddx.h:1.4 php4/ext/wddx/php_wddx.h:1.5
--- php4/ext/wddx/php_wddx.h:1.4 Sun Jul 2 17:41:17 2000
+++ php4/ext/wddx/php_wddx.h Wed Sep 13 13:58:19 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: php_wddx.h,v 1.4 2000/07/03 00:41:17 sas Exp $ */
+/* $Id: php_wddx.h,v 1.5 2000/09/13 20:58:19 andrei Exp $ */
#ifndef PHP_WDDX_H
#define PHP_WDDX_H
@@ -35,8 +35,6 @@
#if HAVE_WDDX
#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: php4/ext/wddx/wddx.c
diff -u php4/ext/wddx/wddx.c:1.54 php4/ext/wddx/wddx.c:1.55
--- php4/ext/wddx/wddx.c:1.54 Wed Sep 13 08:31:50 2000
+++ php4/ext/wddx/wddx.c Wed Sep 13 13:58:19 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: wddx.c,v 1.54 2000/09/13 15:31:50 andrei Exp $ */
+/* $Id: wddx.c,v 1.55 2000/09/13 20:58:19 andrei Exp $ */
#include "php.h"
#include "php_wddx.h"
@@ -114,8 +114,18 @@
{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 @@
/* {{{ 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 @@
}
/* }}} */
+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)