summaryrefslogtreecommitdiff
path: root/ext/zip/php_zip.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2019-04-24 16:14:48 +0300
committerDmitry Stogov <dmitry@zend.com>2019-04-24 16:14:48 +0300
commit34db07567d250c341fcdf1c6125366563a48280f (patch)
treebc2ece4c5f05fccda1ec1d528daef7ae4a9fb811 /ext/zip/php_zip.c
parenteef351b7c76675a3bfab4f7fbab021326d6c6135 (diff)
downloadphp-git-34db07567d250c341fcdf1c6125366563a48280f.tar.gz
Use ZEND_TRA_ASSIGN_REF_... macros for by reference arguments of internal functions.
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;
}
/* }}} */