diff options
author | Andi Gutmans <andi@php.net> | 1999-12-24 17:39:27 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 1999-12-24 17:39:27 +0000 |
commit | 3bf1b04cb45a6b9c6ddbf81d74804a582f6361c0 (patch) | |
tree | 6877a95133675e50757726515246ca7e0ded8d6e /ext/standard/post.c | |
parent | e28aff2f7aa02824142bf425b65c74b0bcd9622a (diff) | |
download | php-git-3bf1b04cb45a6b9c6ddbf81d74804a582f6361c0.tar.gz |
- Move more stuff to ALLOC_ZVAL(). We need to add those FREE_ZVAL()'s now.
Diffstat (limited to 'ext/standard/post.c')
-rw-r--r-- | ext/standard/post.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/post.c b/ext/standard/post.c index 4984b82837..b41007239a 100644 --- a/ext/standard/post.c +++ b/ext/standard/post.c @@ -112,7 +112,7 @@ void php_parse_gpc_data(char *val, char *var, pval *track_vars_array ELS_DC PLS_ } /* Create the element */ - array_element = (pval *) emalloc(sizeof(pval)); + array_element = ALLOC_ZVAL(); INIT_PZVAL(array_element); array_element->value.str.val = val; array_element->value.str.len = val_len; @@ -315,7 +315,7 @@ void php_treat_data(int arg, char *str ELS_DC PLS_DC SLS_DC) case PARSE_GET: case PARSE_COOKIE: if (PG(track_vars)) { - array_ptr = (pval *) emalloc(sizeof(pval)); + array_ptr = ALLOC_ZVAL(); array_init(array_ptr); INIT_PZVAL(array_ptr); switch (arg) { @@ -369,7 +369,7 @@ void php_treat_data(int arg, char *str ELS_DC PLS_DC SLS_DC) if((NULL != SG(request_info).content_type) && (0 == strcmp(SG(request_info).content_type, "application/vnd.fdf"))) { pval *tmp; - tmp = (pval *) emalloc(sizeof(pval)); + tmp = ALLOC_ZVAL(); tmp->value.str.len = SG(request_info).post_data_length; tmp->value.str.val = estrndup(SG(request_info).post_data, SG(request_info).post_data_length); tmp->type = IS_STRING; |