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/zip/php_zip.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/zip/php_zip.c')
-rw-r--r-- | ext/zip/php_zip.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/zip/php_zip.c b/ext/zip/php_zip.c index abf901da1f..df3eade995 100644 --- a/ext/zip/php_zip.c +++ b/ext/zip/php_zip.c @@ -2143,8 +2143,8 @@ static ZIPARCHIVE_METHOD(getExternalAttributesName) (zip_flags_t)flags, &opsys, &attr) < 0) { RETURN_FALSE; } - ZEND_TRY_ASSIGN_LONG(z_opsys, opsys); - ZEND_TRY_ASSIGN_LONG(z_attr, attr); + ZEND_TRY_ASSIGN_REF_LONG(z_opsys, opsys); + ZEND_TRY_ASSIGN_REF_LONG(z_attr, attr); RETURN_TRUE; } /* }}} */ @@ -2172,8 +2172,8 @@ static ZIPARCHIVE_METHOD(getExternalAttributesIndex) (zip_flags_t)flags, &opsys, &attr) < 0) { RETURN_FALSE; } - ZEND_TRY_ASSIGN_LONG(z_opsys, opsys); - ZEND_TRY_ASSIGN_LONG(z_attr, attr); + ZEND_TRY_ASSIGN_REF_LONG(z_opsys, opsys); + ZEND_TRY_ASSIGN_REF_LONG(z_attr, attr); RETURN_TRUE; } /* }}} */ |