summaryrefslogtreecommitdiff
path: root/ext/intl/formatter/formatter_parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/formatter/formatter_parse.c')
-rw-r--r--ext/intl/formatter/formatter_parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/intl/formatter/formatter_parse.c b/ext/intl/formatter/formatter_parse.c
index a2a20f147d..ed338dd7d1 100644
--- a/ext/intl/formatter/formatter_parse.c
+++ b/ext/intl/formatter/formatter_parse.c
@@ -105,7 +105,7 @@ PHP_FUNCTION( numfmt_parse )
efree(oldlocale);
#endif
if(zposition) {
- ZEND_TRY_ASSIGN_LONG(zposition, position);
+ ZEND_TRY_ASSIGN_REF_LONG(zposition, position);
}
if (sstr) {
@@ -159,7 +159,7 @@ PHP_FUNCTION( numfmt_parse_currency )
number = unum_parseDoubleCurrency(FORMATTER_OBJECT(nfo), sstr, sstr_len, position_p, currency, &INTL_DATA_ERROR_CODE(nfo));
if(zposition) {
- ZEND_TRY_ASSIGN_LONG(zposition, position);
+ ZEND_TRY_ASSIGN_REF_LONG(zposition, position);
}
if (sstr) {
efree(sstr);