diff options
| author | Andi Gutmans <andi@php.net> | 2001-06-19 16:03:35 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 2001-06-19 16:03:35 +0000 |
| commit | c977f298626e98aefcbdd77d04f1cba58d4d6590 (patch) | |
| tree | b16e135dce4798e0bcc934d52d7921ecf1308c9d /ext/standard/basic_functions.c | |
| parent | e4f109b69fd2b5976d018f1064a772e34352de91 (diff) | |
| download | php-git-c977f298626e98aefcbdd77d04f1cba58d4d6590.tar.gz | |
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
Diffstat (limited to 'ext/standard/basic_functions.c')
| -rw-r--r-- | ext/standard/basic_functions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 25ea43e167..a0e2aee59e 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -1917,7 +1917,7 @@ PHP_FUNCTION(register_shutdown_function) RETURN_FALSE; } if (!BG(user_shutdown_function_names)) { - BG(user_shutdown_function_names) = (HashTable *) emalloc(sizeof(HashTable)); + ALLOC_HASHTABLE(BG(user_shutdown_function_names)); zend_hash_init(BG(user_shutdown_function_names), 0, NULL, (void (*)(void *))user_shutdown_function_dtor, 0); } |
