summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2017-07-04 20:18:57 -0700
committerAnatol Belski <ab@php.net>2017-07-05 10:11:12 +0200
commit203a9a61a2db48eeb2411fae41b7ebe07d3eea2c (patch)
tree7da685cd77ff6060c144be66d4f6a7afd2d54244
parent448b8d573fd7fb1d2b8890890c92da162755abad (diff)
downloadphp-git-203a9a61a2db48eeb2411fae41b7ebe07d3eea2c.tar.gz
Fix wddx
(cherry picked from commit 6b18d956de38ecd8913c3d82ce96eb0368a1f9e5)
-rw-r--r--ext/wddx/wddx.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index b79d0fbb24..feb6333532 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -758,9 +758,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++) {
@@ -771,7 +768,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)) {