]> granicus.if.org Git - php/commitdiff
that seems to fix it
authorSascha Schumann <sas@php.net>
Fri, 28 May 1999 21:41:17 +0000 (21:41 +0000)
committerSascha Schumann <sas@php.net>
Fri, 28 May 1999 21:41:17 +0000 (21:41 +0000)
ext/standard/var.c

index 53f95d4599058f85ff0854b0c9f69218504dbe5f..e3f1d88a22ba63fac7cd0daf05172fa2499634e0 100644 (file)
@@ -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)++;
                        }