diff options
Diffstat (limited to 'ext/intl/php_intl.c')
-rw-r--r-- | ext/intl/php_intl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index 2b0b19be9b..2b91266e7e 100644 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -267,9 +267,7 @@ PHP_RINIT_FUNCTION( intl ) /* {{{ PHP_RSHUTDOWN_FUNCTION */ PHP_RSHUTDOWN_FUNCTION( intl ) { - if(!Z_ISUNDEF(INTL_G(current_collator))) { - ZVAL_UNDEF(&INTL_G(current_collator)); - } + INTL_G(current_collator) = NULL; if (INTL_G(grapheme_iterator)) { grapheme_close_global_iterator( ); INTL_G(grapheme_iterator) = NULL; |