Date: 08/18/99
- Next message: Bug Database: "[PHP-DEV] Bug #2103 Updated: wddx_deserialize sometimes crashes httpd"
- Previous message: craig <email protected>: "[PHP-DEV] Bug #2104: ereg_replace doesn't work with $"
- Next in thread: Andrey Zmievski: "[PHP-DEV] cvs: /php3/functions wddx_a.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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);
}
/* }}} */
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #2103 Updated: wddx_deserialize sometimes crashes httpd"
- Previous message: craig <email protected>: "[PHP-DEV] Bug #2104: ereg_replace doesn't work with $"
- Next in thread: Andrey Zmievski: "[PHP-DEV] cvs: /php3/functions wddx_a.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

