summaryrefslogtreecommitdiff
path: root/ext/bcmath/bcmath.c
diff options
context:
space:
mode:
authorDaniel Beulshausen <dbeu@php.net>2000-10-08 11:45:18 +0000
committerDaniel Beulshausen <dbeu@php.net>2000-10-08 11:45:18 +0000
commitd667e05543b02da5fa122c5878c09067622013c4 (patch)
treec5c2a6a2d7a9eefacf8a764d36ad7f124d716e95 /ext/bcmath/bcmath.c
parent990a86615dd1aad60e752374892f1398657ca81a (diff)
downloadphp-git-d667e05543b02da5fa122c5878c09067622013c4.tar.gz
more cleanup of info code
Diffstat (limited to 'ext/bcmath/bcmath.c')
-rw-r--r--ext/bcmath/bcmath.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/ext/bcmath/bcmath.c b/ext/bcmath/bcmath.c
index 31158496a5..4ec3f1d798 100644
--- a/ext/bcmath/bcmath.c
+++ b/ext/bcmath/bcmath.c
@@ -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)