From b6e9c76d67a8cfb397598ac354d9aeb9609ba1d2 Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Sat, 28 Jun 2014 12:20:35 +0800 Subject: Refactoring ext/intl (only compilerable now, far to finish :<) --- ext/intl/php_intl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/intl/php_intl.c') diff --git a/ext/intl/php_intl.c b/ext/intl/php_intl.c index 65e53c8b5e..5b8a730c49 100644 --- a/ext/intl/php_intl.c +++ b/ext/intl/php_intl.c @@ -1032,8 +1032,8 @@ PHP_RINIT_FUNCTION( intl ) */ PHP_RSHUTDOWN_FUNCTION( intl ) { - if(INTL_G(current_collator)) { - INTL_G(current_collator) = NULL; + if(!Z_ISUNDEF(INTL_G(current_collator))) { + ZVAL_UNDEF(&INTL_G(current_collator)); } if (INTL_G(grapheme_iterator)) { grapheme_close_global_iterator( TSRMLS_C ); -- cgit v1.2.1