From: Sascha Schumann Date: Fri, 28 May 1999 21:41:17 +0000 (+0000) Subject: that seems to fix it X-Git-Tag: BEFORE_REMOVING_GC_STEP1~252 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfce358a5b1cc2ec1d7901bccc95e645f947b428;p=php that seems to fix it --- 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)++; }