diff options
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); |