diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-04-24 18:28:29 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-04-24 18:28:29 +0300 |
commit | e188e4170fcc3e3a2d9ab57f3d3d24c4b26dd4bd (patch) | |
tree | bc2ece4c5f05fccda1ec1d528daef7ae4a9fb811 /ext/intl/formatter/formatter_parse.c | |
parent | eef351b7c76675a3bfab4f7fbab021326d6c6135 (diff) | |
download | php-git-e188e4170fcc3e3a2d9ab57f3d3d24c4b26dd4bd.tar.gz |
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
Diffstat (limited to 'ext/intl/formatter/formatter_parse.c')
-rw-r--r-- | ext/intl/formatter/formatter_parse.c | 4 |
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); |