mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +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
|
@ -764,9 +764,9 @@ void decode_request_worker(char *xml_in, int xml_in_len, char *encoding_in, zval
|
|||
if (method_name_out) {
|
||||
method_name = XMLRPC_RequestGetMethodName(response);
|
||||
if (method_name) {
|
||||
ZEND_TRY_ASSIGN_STRING(method_name_out, method_name);
|
||||
ZEND_TRY_ASSIGN_REF_STRING(method_name_out, method_name);
|
||||
} else {
|
||||
ZEND_TRY_ASSIGN_NULL(retval);
|
||||
ZVAL_NULL(retval);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1396,7 +1396,7 @@ PHP_FUNCTION(xmlrpc_set_type)
|
|||
zval tmp;
|
||||
ZVAL_COPY(&tmp, Z_REFVAL_P(arg));
|
||||
if (set_zval_xmlrpc_type(&tmp, vtype) == SUCCESS) {
|
||||
ZEND_TRY_ASSIGN_VALUE(arg, &tmp);
|
||||
ZEND_TRY_ASSIGN_REF_VALUE(arg, &tmp);
|
||||
RETURN_TRUE;
|
||||
}
|
||||
Z_TRY_DELREF(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue