mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Use appropriate macros
This commit is contained in:
parent
2c39cf670c
commit
4e7cbf3f58
3 changed files with 3 additions and 3 deletions
|
@ -429,7 +429,7 @@ ZEND_API void zend_print_zval_r_ex(zend_write_func_t write_func, zval *expr, int
|
|||
properties->u.v.nApplyCount--;
|
||||
if (is_temp) {
|
||||
zend_hash_destroy(properties);
|
||||
efree(properties);
|
||||
FREE_HASHTABLE(properties);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -1494,7 +1494,7 @@ void zend_clean_and_cache_symbol_table(zend_array *symbol_table TSRMLS_DC) /* {{
|
|||
{
|
||||
if (EG(symtable_cache_ptr) >= EG(symtable_cache_limit)) {
|
||||
zend_hash_destroy(&symbol_table->ht);
|
||||
efree(symbol_table);
|
||||
FREE_HASHTABLE(symbol_table);
|
||||
} else {
|
||||
/* clean before putting into the cache, since clean
|
||||
could call dtors, which could use cached hash */
|
||||
|
|
|
@ -359,7 +359,7 @@ void shutdown_executor(TSRMLS_D) /* {{{ */
|
|||
|
||||
while (EG(symtable_cache_ptr)>=EG(symtable_cache)) {
|
||||
zend_hash_destroy(&(*EG(symtable_cache_ptr))->ht);
|
||||
efree(*EG(symtable_cache_ptr));
|
||||
FREE_HASHTABLE(*EG(symtable_cache_ptr));
|
||||
EG(symtable_cache_ptr)--;
|
||||
}
|
||||
} zend_end_try();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue