Hello,
This Patch adds mhash phpinfo function
And the Zend modifies modules struct like it in that
README.EXTENSIONS is.
I tested it and go it
Patch is Added as Attachment
Thanks
Peter Neuman
Index: mhash.c
===================================================================
RCS file: /repository/other/mhash.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 mhash.c
--- mhash.c 1 Aug 2002 16:56:33 -0000 1.1.1.1
+++ mhash.c 1 Aug 2002 19:07:30 -0000
@@ -44,19 +44,33 @@
static PHP_MINIT_FUNCTION(mhash);
zend_module_entry mhash_module_entry = {
- STANDARD_MODULE_HEADER,
- "mhash",
- mhash_functions,
- PHP_MINIT(mhash), NULL,
- NULL, NULL,
- NULL,
+#if ZEND_MODULE_API_NO >= 20010901
+ STANDARD_MODULE_HEADER,
+#endif
+ "mhash",
+ mhash_functions,
+ NULL,
+ NULL,
+ NULL,
+ NULL,
+ PHP_MINFO(mhash),
+#if ZEND_MODULE_API_NO >= 20010901
NO_VERSION_YET,
- STANDARD_MODULE_PROPERTIES,
+#endif
+ STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_MHASH
ZEND_GET_MODULE(mhash)
#endif
+
+PHP_MINFO_FUNCTION(mhash)
+{
+ php_info_print_table_start();
+ php_info_print_table_row(2, "mhash Support", "enabled");
+ php_info_print_table_end();
+}
+
#define MHASH_FAILED_MSG "mhash initialization failed"
#define MHASH_KEYGEN_FAILED_MSG "mhash key generation failed"
static PHP_MINIT_FUNCTION(mhash)
Index: php_mhash.h
===================================================================
RCS file: /repository/other/php_mhash.h,v
retrieving revision 1.1
diff -u -r1.1 php_mhash.h
--- php_mhash.h 1 Aug 2002 17:39:26 -0000 1.1
+++ php_mhash.h 1 Aug 2002 17:40:47 -0000
@@ -12,6 +12,7 @@
extern zend_module_entry mhash_module_entry;
#define mhash_module_ptr &mhash_module_entry
+PHP_MINFO_FUNCTION(mhash);
PHP_FUNCTION(mhash_get_block_size);
PHP_FUNCTION(mhash_get_hash_name);
PHP_FUNCTION(mhash_count);
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php