Skip to content

Commit 6b18d95

Browse files
committed
Fix wddx
1 parent 0496f54 commit 6b18d95

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ext/wddx/wddx.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,6 @@ static void php_wddx_push_element(void *user_data, const XML_Char *name, const X
761761
} else if (!strcmp((char *)name, EL_BOOLEAN)) {
762762
int i;
763763

764-
ALLOC_ZVAL(ent.data);
765-
INIT_PZVAL(ent.data);
766-
Z_TYPE_P(ent.data) = IS_BOOL;
767764
ent.type = ST_BOOLEAN;
768765
SET_STACK_VARNAME;
769766
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
774771
break;
775772
}
776773
} else {
777-
ZVAL_FALSE(ent.data);
774+
ZVAL_FALSE(&ent.data);
778775
wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry));
779776
}
780777
} else if (!strcmp((char *)name, EL_NULL)) {

0 commit comments

Comments
 (0)