mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Use ZEND_TRY_ASSIGN_REF_... macros for arguments passed to internal function by reference
This commit is contained in:
parent
eef351b7c7
commit
e188e4170f
23 changed files with 300 additions and 166 deletions
|
@ -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;
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue