summaryrefslogtreecommitdiff
path: root/ext/standard/php_string.h
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2001-07-04 10:10:30 +0000
committerWez Furlong <wez@php.net>2001-07-04 10:10:30 +0000
commitf1364ebf3ead89f145af573e3b90f3503898b0ad (patch)
treed33144965c977b7fa15233997cab3b84ff339a5e /ext/standard/php_string.h
parent649d14ae7966496a57d3a91bc8e93b1865bd565e (diff)
downloadphp-git-f1364ebf3ead89f145af573e3b90f3503898b0ad.tar.gz
(PHP nl_langinfo) Added function when provided by OS
(PHP htmlentities, htmlspecialchars) Uses nl_langinfo to determine charset @- Added nl_langinfo() (when OS provides it) that returns locale information. (Wez Furlong) # There are a lot of constants used by nl_langinfo; should we do something # along the lines of what we do for syslog?
Diffstat (limited to 'ext/standard/php_string.h')
-rw-r--r--ext/standard/php_string.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/standard/php_string.h b/ext/standard/php_string.h
index a223043f9f..7e0ea30dcb 100644
--- a/ext/standard/php_string.h
+++ b/ext/standard/php_string.h
@@ -66,6 +66,7 @@ PHP_FUNCTION(ord);
PHP_FUNCTION(nl2br);
PHP_FUNCTION(setlocale);
PHP_FUNCTION(localeconv);
+PHP_FUNCTION(nl_langinfo);
PHP_FUNCTION(stristr);
PHP_FUNCTION(chunk_split);
PHP_FUNCTION(parse_str);
@@ -88,6 +89,9 @@ PHP_FUNCTION(strcoll);
PHP_MINIT_FUNCTION(localeconv);
PHP_MSHUTDOWN_FUNCTION(localeconv);
#endif
+#if HAVE_NL_LANGINFO
+PHP_MINIT_FUNCTION(nl_langinfo);
+#endif
#define strnatcmp(a, b) \
strnatcmp_ex(a, strlen(a), b, strlen(b), 0)