summaryrefslogtreecommitdiff
path: root/ext/standard/basic_functions.c
diff options
context:
space:
mode:
authorSean Bright <elixer@php.net>2001-01-14 16:36:30 +0000
committerSean Bright <elixer@php.net>2001-01-14 16:36:30 +0000
commit40f3524247f36e6f485f3f1247a222cedab5cbdf (patch)
treee09bc8dd354a46a1435cb5effe697b98c843f971 /ext/standard/basic_functions.c
parent5311bfa5c5f0d72be0c8b7ead00e30138f560863 (diff)
downloadphp-git-40f3524247f36e6f485f3f1247a222cedab5cbdf.tar.gz
Added localeconv() function. Operates similarly to localeconv() defined in
locale.h. Should work well under non-ZTS as well as ZTS.
Diffstat (limited to 'ext/standard/basic_functions.c')
-rw-r--r--ext/standard/basic_functions.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index 7221f83dc9..4c71abf18e 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -182,6 +182,7 @@ function_entry basic_functions[] = {
PHP_FE(explode, NULL)
PHP_FE(implode, NULL)
PHP_FE(setlocale, NULL)
+ PHP_FE(localeconv, NULL)
PHP_FE(soundex, NULL)
PHP_FE(levenshtein, NULL)
PHP_FE(chr, NULL)
@@ -713,6 +714,9 @@ PHP_MINIT_FUNCTION(basic)
PHP_MINIT(pack)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(browscap)(INIT_FUNC_ARGS_PASSTHRU);
PHP_MINIT(lcg)(INIT_FUNC_ARGS_PASSTHRU);
+#ifdef ZTS
+ PHP_MINIT(localeconv)(INIT_FUNC_ARGS_PASSTHRU);
+#endif
#if HAVE_CRYPT
PHP_MINIT(crypt)(INIT_FUNC_ARGS_PASSTHRU);
@@ -769,6 +773,9 @@ PHP_MSHUTDOWN_FUNCTION(basic)
PHP_MSHUTDOWN(url_scanner_ex)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
#endif
PHP_MSHUTDOWN(file)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
+#ifdef ZTS
+ PHP_MSHUTDOWN(localeconv)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
+#endif
return SUCCESS;
}