AC_CHECK_FUNCS(fnmatch glob)
+AC_CHECK_FUNCS(strfmon)
+
if test "$PHP_SAPI" = "cgi"; then
AC_DEFINE(ENABLE_CHROOT_FUNC, 1, [Whether to enable chroot() function])
fi
/* }}} */
+#if HAVE_STRFMON
+/* {{{ proto string money_format(string format , float value)
+ Convert monetary value(s) to string */
+
+PHP_FUNCTION(money_format) {
+ int format_len, str_len = 1024;
+ char *format, *str = emalloc(str_len);
+ double value;
+
+ if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sd",
+ &format, &format_len, &value) == FAILURE) {
+ return;
+ }
+
+ str_len = strfmon(str, str_len, format, value);
+
+ RETURN_STRINGL(erealloc(str, strlen), str_len, 0);
+}
+
+/* }}} */
+#endif
+
/*
* Local variables:
* tab-width: 4