mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Use MAKE_STD_ZVAL instead of ALLOC_ZVAL
This commit is contained in:
parent
633c95aa40
commit
9a04d51b4a
@ -868,9 +868,8 @@ static void retval_array2_grs1(zval *return_value, Z_GenericRecord *p)
|
||||
zval *zval_sub;
|
||||
Z_TaggedElement *e = p->elements[i];
|
||||
|
||||
ALLOC_ZVAL(zval_element);
|
||||
MAKE_STD_ZVAL(zval_element);
|
||||
array_init(zval_element);
|
||||
INIT_PZVAL(zval_element);
|
||||
|
||||
if (e->tagType)
|
||||
add_assoc_long(zval_element, "tagType", *e->tagType);
|
||||
@ -891,7 +890,7 @@ static void retval_array2_grs1(zval *return_value, Z_GenericRecord *p)
|
||||
add_assoc_bool(zval_element, "content",*e->content->u.trueOrFalse);
|
||||
break;
|
||||
case Z_ElementData_subtree:
|
||||
ALLOC_ZVAL(zval_sub);
|
||||
MAKE_STD_ZVAL(zval_sub);
|
||||
retval_array2_grs1(zval_sub, e->content->u.subtree);
|
||||
add_assoc_zval(zval_element, "content", zval_sub);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user