summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2014-06-28 12:20:35 +0800
committerXinchen Hui <laruence@php.net>2014-06-28 12:20:35 +0800
commitb6e9c76d67a8cfb397598ac354d9aeb9609ba1d2 (patch)
tree74a1e3cec4c687e7f07d4b3f3b7720fe7fa39158 /ext/intl/php_intl.c
parent7614fe810eba7ce16f100c2c9e592922fd9e739c (diff)
downloadphp-git-b6e9c76d67a8cfb397598ac354d9aeb9609ba1d2.tar.gz
Refactoring ext/intl (only compilerable now, far to finish :<)
Diffstat (limited to 'ext/intl/php_intl.c')
-rw-r--r--ext/intl/php_intl.c4
1 files changed, 2 insertions, 2 deletions
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 );