summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2001-02-06 03:57:43 +0000
committerAndrei Zmievski <andrei@php.net>2001-02-06 03:57:43 +0000
commit88fce00cc0311c61543212a4c15827b710233739 (patch)
treeb8e700008c8192691e7fe65bb7a37d1c3b9f7cf6
parent74912b9afb08ddedbdc3138dd041d980fa604fef (diff)
downloadphp-git-88fce00cc0311c61543212a4c15827b710233739.tar.gz
Don't use Z* macros for non-zvals.
-rw-r--r--ext/wddx/wddx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/wddx/wddx.c b/ext/wddx/wddx.c
index 298d9872c3..409659c7fc 100644
--- a/ext/wddx/wddx.c
+++ b/ext/wddx/wddx.c
@@ -562,7 +562,7 @@ static void php_wddx_push_element(void *user_data, const char *name, const char
}
}
} else if (!strcmp(name, EL_STRING)) {
- Z_TYPE(ent) = ST_STRING;
+ ent.type = ST_STRING;
SET_STACK_VARNAME;
ALLOC_ZVAL(ent.data);
@@ -572,7 +572,7 @@ static void php_wddx_push_element(void *user_data, const char *name, const char
Z_STRLEN_P(ent.data) = 0;
wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry));
} else if (!strcmp(name, EL_BINARY)) {
- Z_TYPE(ent) = ST_BINARY;
+ ent.type = ST_BINARY;
SET_STACK_VARNAME;
ALLOC_ZVAL(ent.data);
@@ -592,7 +592,7 @@ static void php_wddx_push_element(void *user_data, const char *name, const char
}
}
} else if (!strcmp(name, EL_NUMBER)) {
- Z_TYPE(ent) = ST_NUMBER;
+ ent.type = ST_NUMBER;
SET_STACK_VARNAME;
ALLOC_ZVAL(ent.data);
@@ -604,7 +604,7 @@ static void php_wddx_push_element(void *user_data, const char *name, const char
for (i=0; atts[i]; i++) {
if (!strcmp(atts[i], EL_VALUE) && atts[i+1]) {
- Z_TYPE(ent) = ST_BOOLEAN;
+ ent.type = ST_BOOLEAN;
SET_STACK_VARNAME;
ALLOC_ZVAL(ent.data);