diff options
Diffstat (limited to 'ext/standard/var.c')
-rw-r--r-- | ext/standard/var.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/standard/var.c b/ext/standard/var.c index 308a0206be..7c9f4d9044 100644 --- a/ext/standard/var.c +++ b/ext/standard/var.c @@ -392,8 +392,7 @@ int php_var_unserialize(pval **rval, const char **p, const char *max, HashTable if(zend_hash_index_find(var_hash, id, (void *)&rval_ref) != SUCCESS) { return 0; } - zval_dtor(*rval); - FREE_ZVAL(*rval); + zval_ptr_dtor(rval); *rval = *rval_ref; (*rval)->refcount++; (*rval)->is_ref = 1; |