summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-04-24 18:28:29 +0300
committerDmitry Stogov <dmitry@zend.com>2019-04-24 18:28:29 +0300
commite188e4170fcc3e3a2d9ab57f3d3d24c4b26dd4bd (patch)
treebc2ece4c5f05fccda1ec1d528daef7ae4a9fb811 /ext/zip/php_zip.c
parenteef351b7c76675a3bfab4f7fbab021326d6c6135 (diff)
downloadphp-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.c8
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;
}
/* }}} */