]> granicus.if.org Git - php/commitdiff
more cleanup of info code
authorDaniel Beulshausen <dbeu@php.net>
Sun, 8 Oct 2000 11:45:18 +0000 (11:45 +0000)
committerDaniel Beulshausen <dbeu@php.net>
Sun, 8 Oct 2000 11:45:18 +0000 (11:45 +0000)
ext/bcmath/bcmath.c
ext/bcmath/php_bcmath.h
ext/ftp/php_ftp.c
ext/ftp/php_ftp.h
main/internal_functions_win32.c

index 31158496a5abe56c4a6df049b0704d38b7ec6f5c..4ec3f1d79816cf769ae19dea84f1b18e7f0dafe3 100644 (file)
@@ -23,6 +23,7 @@
 #if WITH_BCMATH
 
 #include "number.h"
+#include "ext/standard/info.h"
 #include "php_bcmath.h"
 
 function_entry bcmath_functions[] = {
@@ -39,7 +40,14 @@ function_entry bcmath_functions[] = {
 };
 
 zend_module_entry bcmath_module_entry = {
-       "bcmath", bcmath_functions, NULL, NULL, PHP_RINIT(bcmath), PHP_RSHUTDOWN(bcmath), NULL, STANDARD_MODULE_PROPERTIES
+       "bcmath",
+    bcmath_functions,
+       NULL,
+       NULL,
+       PHP_RINIT(bcmath),
+       PHP_RSHUTDOWN(bcmath),
+       PHP_MINFO(bcmath),
+       STANDARD_MODULE_PROPERTIES
 };
 
 #ifdef COMPILE_DL_BCMATH
@@ -65,6 +73,13 @@ PHP_RSHUTDOWN_FUNCTION(bcmath)
        return SUCCESS;
 }
 
+PHP_MINFO_FUNCTION(bcmath)
+{
+  php_info_print_table_start();
+  php_info_print_table_row(2, "BCMath support", "enabled");
+  php_info_print_table_end();
+}
+
 /* {{{ proto string bcadd(string left_operand, string right_operand [, int scale])
    Returns the sum of two arbitrary precision numbers */
 PHP_FUNCTION(bcadd)
index 29c3f783a675e856b253091fd9b50cc7fd5df642..df7512d842e5a99ac2cbfe4ac90096ea6651566b 100644 (file)
@@ -28,6 +28,8 @@ extern zend_module_entry bcmath_module_entry;
 
 extern PHP_RINIT_FUNCTION(bcmath);
 extern PHP_RSHUTDOWN_FUNCTION(bcmath);
+PHP_MINFO_FUNCTION(bcmath);
+
 PHP_FUNCTION(bcadd);
 PHP_FUNCTION(bcsub);
 PHP_FUNCTION(bcmul);
index 061b2aac6cbbedbe4ea4f554b422f195b3737b51..a7de40b1281d72789dafca19bb067e06cba489c2 100644 (file)
@@ -34,6 +34,7 @@
 
 #if HAVE_FTP
 
+#include "ext/standard/info.h"
 #include "ext/standard/file.h"
 
 #include "php_ftp.h"
@@ -75,7 +76,7 @@ zend_module_entry php_ftp_module_entry = {
        NULL,
        NULL,
        NULL,
-       NULL,
+       PHP_MINFO(ftp),
        STANDARD_MODULE_PROPERTIES
 };
 
@@ -102,6 +103,13 @@ PHP_MINIT_FUNCTION(ftp)
        return SUCCESS;
 }
 
+PHP_MINFO_FUNCTION(ftp)
+{
+  php_info_print_table_start();
+  php_info_print_table_row(2, "FTP support", "enabled");
+  php_info_print_table_end();
+}
+
 
 #define        FTPBUF(ftp, pval) { \
        int     id, type; \
index 79a8e1664297a895db33c4e9ca35c19313d902ea..6741ac66e2aedee1ae74c5a93ceee5d71a93e06d 100644 (file)
@@ -39,6 +39,7 @@ extern zend_module_entry php_ftp_module_entry;
 #define php_ftp_module_ptr &php_ftp_module_entry
 
 PHP_MINIT_FUNCTION(ftp);
+PHP_MINFO_FUNCTION(ftp);
 
 PHP_FUNCTION(ftp_connect);
 PHP_FUNCTION(ftp_login);
index 9088251463fa360f042e93605e3d5789513c6042..1626aecc5dcc88979abfbcdf2a0e6bbd96ba1623 100644 (file)
 /* #include "dl/snmp/php_snmp.h" */
 
 zend_module_entry *php_builtin_extensions[] = {
+       phpext_standard_ptr,
 #if WITH_BCMATH
        phpext_bcmath_ptr,
 #endif
-       phpext_standard_ptr,
        phpext_calendar_ptr,
        COM_module_ptr,
        phpext_ftp_ptr,
-       phpext_pcre_ptr,
+       phpext_mysql_ptr,
        phpext_odbc_ptr,
+       phpext_pcre_ptr,
        phpext_session_ptr,
        phpext_xml_ptr,
-       phpext_wddx_ptr,
-       phpext_mysql_ptr
+       phpext_wddx_ptr
 };
 
 #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *))