mirror of
https://github.com/php/php-src.git
synced 2025-08-17 14:38:49 +02:00
Using ALLOC_HASHTABLE/FREE_HASHTABLE instead of emalloc/free.
This commit is contained in:
parent
e973875d98
commit
2bbba73606
1 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ void shutdown_executor(TSRMLS_D)
|
||||||
zend_objects_store_destroy(&EG(objects_store));
|
zend_objects_store_destroy(&EG(objects_store));
|
||||||
if (EG(in_autoload)) {
|
if (EG(in_autoload)) {
|
||||||
zend_hash_destroy(EG(in_autoload));
|
zend_hash_destroy(EG(in_autoload));
|
||||||
efree(EG(in_autoload));
|
FREE_HASHTABLE(EG(in_autoload));
|
||||||
}
|
}
|
||||||
} zend_end_try();
|
} zend_end_try();
|
||||||
}
|
}
|
||||||
|
@ -894,7 +894,7 @@ ZEND_API int zend_lookup_class(char *name, int name_length, zend_class_entry ***
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EG(in_autoload) == NULL) {
|
if (EG(in_autoload) == NULL) {
|
||||||
EG(in_autoload) = emalloc(sizeof(HashTable));
|
ALLOC_HASHTABLE(EG(in_autoload));
|
||||||
zend_hash_init(EG(in_autoload), 0, NULL, NULL, 0);
|
zend_hash_init(EG(in_autoload), 0, NULL, NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue