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/standard/basic_functions.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/standard/basic_functions.c')
-rw-r--r-- | ext/standard/basic_functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index c78de74f2f..0ec4fb39b1 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -4384,7 +4384,7 @@ PHP_FUNCTION(getopt) /* Init zoptind to 1 */ if (zoptind) { - ZEND_TRY_ASSIGN_LONG(zoptind, 1); + ZEND_TRY_ASSIGN_REF_LONG(zoptind, 1); } /* Get argv from the global symbol table. We calculate argc ourselves @@ -4532,7 +4532,7 @@ PHP_FUNCTION(getopt) /* Set zoptind to php_optind */ if (zoptind) { - ZEND_TRY_ASSIGN_LONG(zoptind, php_optind); + ZEND_TRY_ASSIGN_REF_LONG(zoptind, php_optind); } free_longopts(orig_opts); |