Skip to content

Commit

Permalink
Use inlined version of zval_ptr_dytor() in var_destroy() loop
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Jun 29, 2017
1 parent 5a51da9 commit 10dc924
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ext/standard/var_unserializer.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ PHPAPI void var_destroy(php_unserialize_data_t *var_hashx)
}
}

zval_ptr_dtor(zv);
i_zval_ptr_dtor(zv ZEND_FILE_LINE_CC);
}
next = var_dtor_hash->next;
efree_size(var_dtor_hash, sizeof(var_dtor_entries));
var_dtor_hash = next;
}

zval_ptr_dtor(&wakeup_name);
zval_ptr_dtor_nogc(&wakeup_name);
}

/* }}} */
Expand Down
4 changes: 2 additions & 2 deletions ext/standard/var_unserializer.re
Original file line number Diff line number Diff line change
Expand Up @@ -231,14 +231,14 @@ PHPAPI void var_destroy(php_unserialize_data_t *var_hashx)
}
}

zval_ptr_dtor(zv);
i_zval_ptr_dtor(zv ZEND_FILE_LINE_CC);
}
next = var_dtor_hash->next;
efree_size(var_dtor_hash, sizeof(var_dtor_entries));
var_dtor_hash = next;
}

zval_ptr_dtor(&wakeup_name);
zval_ptr_dtor_nogc(&wakeup_name);
}

/* }}} */
Expand Down

0 comments on commit 10dc924

Please sign in to comment.