com php-src: Fixed reference handling in intltz_get_offset : ext/intl/timezone/timezone_methods.cpp
| From: | Xinchen Hui | Date: | Mon, 30 Jun 2014 03:01:26 +0000 |
| Subject: | com php-src: Fixed reference handling in intltz_get_offset : ext/intl/timezone/timezone_methods.cpp | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79145@lists.php.net to get a copy of this message | ||
Commit: a0b500df9974dbf8ffdcf975449551495788ebe6
Author: Xinchen Hui <laruence@php.net> Mon, 30 Jun 2014 11:01:26 +0800
Parents: 499293449bbd3ef2f7dd3e904ee1a469e4ea0433
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a0b500df9974dbf8ffdcf975449551495788ebe6
Log:
Fixed reference handling in intltz_get_offset
Changed paths:
M ext/intl/timezone/timezone_methods.cpp
Diff:
diff --git a/ext/intl/timezone/timezone_methods.cpp b/ext/intl/timezone/timezone_methods.cpp
index c98a036..a5624be 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);