diff options
author | Sascha Schumann <sas@php.net> | 1999-05-28 21:41:17 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-05-28 21:41:17 +0000 |
commit | dfce358a5b1cc2ec1d7901bccc95e645f947b428 (patch) | |
tree | 3eef5d8f8a0649e38049b68b3a3e642e21ed87d5 | |
parent | 7401ef12fba944c7d8a0a1473e9ec3ce473fa3ff (diff) | |
download | php-git-dfce358a5b1cc2ec1d7901bccc95e645f947b428.tar.gz |
that seems to fix it
-rw-r--r-- | ext/standard/var.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)++; } |