From: Xinchen Hui Date: Mon, 30 Jun 2014 03:01:26 +0000 (+0800) Subject: Fixed reference handling in intltz_get_offset X-Git-Tag: POST_PHPNG_MERGE~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a0b500df9974dbf8ffdcf975449551495788ebe6;p=php Fixed reference handling in intltz_get_offset --- diff --git a/ext/intl/timezone/timezone_methods.cpp b/ext/intl/timezone/timezone_methods.cpp index c98a03639f..a5624be6e2 100644 --- a/ext/intl/timezone/timezone_methods.cpp +++ b/ext/intl/timezone/timezone_methods.cpp @@ -482,8 +482,10 @@ U_CFUNC PHP_FUNCTION(intltz_get_offset) INTL_METHOD_CHECK_STATUS(to, "intltz_get_offset: error obtaining offset"); + ZVAL_DEREF(rawOffsetArg); zval_dtor(rawOffsetArg); ZVAL_LONG(rawOffsetArg, rawOffset); + ZVAL_DEREF(dstOffsetArg); zval_dtor(dstOffsetArg); ZVAL_LONG(dstOffsetArg, dstOffset);