cvs: /php3/functions wddx_a.c

From: Date: Wed, 18 Aug 1999 16:34:31 +0000
Subject: cvs: /php3/functions wddx_a.c
Groups: php.dev 
Request: Send a blank email to php-dev+get-9983@lists.php.net to get a copy of this message
andrey Wed Aug 18 12:34:31 1999 EDT Modified files: /php3/functions wddx_a.c Log: Fixed bug #2103 and other stuff. Index: php3/functions/wddx_a.c diff -u php3/functions/wddx_a.c:1.8 php3/functions/wddx_a.c:1.9 --- php3/functions/wddx_a.c:1.8 Wed Aug 18 12:09:31 1999 +++ php3/functions/wddx_a.c Wed Aug 18 12:34:31 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: wddx_a.c,v 1.8 1999/08/18 16:09:31 andrey Exp $ */ +/* $Id: wddx_a.c,v 1.9 1999/08/18 16:34:31 andrey Exp $ */ #include "php.h" #include "internal_functions.h" @@ -479,6 +479,7 @@ ent.varname = NULL; ent.data = (pval *)emalloc(sizeof(pval)); + ent.data->value.str.val = NULL; ent.data->value.str.len = 0; wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); } else if (!strcmp(name, EL_CHAR)) { @@ -557,7 +558,7 @@ _php3_hash_update(ent2->data->value.ht, ent1->varname, strlen(ent1->varname)+1, ent1->data, sizeof(pval), NULL); efree(ent1->varname); - } else + } else _php3_hash_next_index_insert(ent2->data->value.ht, ent1->data, sizeof(pval), NULL); } @@ -565,6 +566,8 @@ efree(ent1); } } + else if (!strcmp(name, EL_VAR) && stack->varname) + efree(stack->varname); } /* }}} */

« previous php.dev (#9983) next »