From: Stanislav Malyshev Date: Wed, 5 Jul 2017 03:18:57 +0000 (-0700) Subject: Fix wddx X-Git-Tag: php-7.0.22RC1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b18d956de38ecd8913c3d82ce96eb0368a1f9e5;p=php Fix wddx --- diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c index 62c9e8eb76..c1fe0204a5 100644 --- a/ext/wddx/wddx.c +++ b/ext/wddx/wddx.c @@ -761,9 +761,6 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X } else if (!strcmp((char *)name, EL_BOOLEAN)) { int i; - ALLOC_ZVAL(ent.data); - INIT_PZVAL(ent.data); - Z_TYPE_P(ent.data) = IS_BOOL; ent.type = ST_BOOLEAN; SET_STACK_VARNAME; if (atts) for (i = 0; atts[i]; i++) { @@ -774,7 +771,7 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X break; } } else { - ZVAL_FALSE(ent.data); + ZVAL_FALSE(&ent.data); wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); } } else if (!strcmp((char *)name, EL_NULL)) {