summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
authorGustavo Lopes <glopes@safelinq.com>2012-07-23 16:38:27 +0200
committerGustavo Lopes <glopes@safelinq.com>2012-07-23 16:38:27 +0200
commitc052b9c99ac09069d3f7c8ca5904c499ec842336 (patch)
treee584f68eab1bf1369b642e1008af4598647d143b /ext/intl/php_intl.c
parent0dfcc3e798cd54714f792bf7507c37b96146ee1b (diff)
downloadphp-git-c052b9c99ac09069d3f7c8ca5904c499ec842336.tar.gz
Do not fetch default locale once on minit or rinit
The default locale is now requested to ICU when it's needed by using intl_get_default_locale().
Diffstat (limited to 'ext/intl/php_intl.c')
-rwxr-xr-xext/intl/php_intl.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c
index 41a1d1c0af..38175ca54c 100755
--- a/ext/intl/php_intl.c
+++ b/ext/intl/php_intl.c
@@ -1011,11 +1011,6 @@ PHP_MINIT_FUNCTION( intl )
/* Global error handling. */
intl_error_init( NULL TSRMLS_CC );
- /* Set the default_locale value */
- if( INTL_G(default_locale) == NULL ) {
- INTL_G(default_locale) = pestrdup(uloc_getDefault(), 1) ;
- }
-
return SUCCESS;
}
/* }}} */
@@ -1039,10 +1034,6 @@ PHP_MSHUTDOWN_FUNCTION( intl )
*/
PHP_RINIT_FUNCTION( intl )
{
- /* Set the default_locale value */
- if( INTL_G(default_locale) == NULL ) {
- INTL_G(default_locale) = pestrdup(uloc_getDefault(), 1) ;
- }
return SUCCESS;
}
/* }}} */