From dfce358a5b1cc2ec1d7901bccc95e645f947b428 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Fri, 28 May 1999 21:41:17 +0000 Subject: [PATCH] that seems to fix it --- ext/standard/var.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/standard/var.c b/ext/standard/var.c index 53f95d4599..e3f1d88a22 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -335,10 +335,12 @@ int php3api_var_unserialize(pval **rval, char **p, char *max) (*rval)->type = IS_OBJECT; got_array: + (*rval)->refcount = 1; + (*rval)->is_ref = 0; (*p) += 2; i = atoi(*p); (*rval)->value.ht = (HashTable *) emalloc(sizeof(HashTable)); - _php3_hash_init((*rval)->value.ht, i + 1, NULL, PVAL_DESTRUCTOR, 0); + _php3_hash_init((*rval)->value.ht, i + 1, NULL, PVAL_PTR_DTOR, 0); while (**p && **p != ':') { (*p)++; } -- 2.40.0