summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2001-06-19 16:03:35 +0000
committerAndi Gutmans <andi@php.net>2001-06-19 16:03:35 +0000
commitc977f298626e98aefcbdd77d04f1cba58d4d6590 (patch)
treeb16e135dce4798e0bcc934d52d7921ecf1308c9d /ext/standard/array.c
parente4f109b69fd2b5976d018f1064a772e34352de91 (diff)
downloadphp-git-c977f298626e98aefcbdd77d04f1cba58d4d6590.tar.gz
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index a356cc3c70..8c27c7eeba 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -1419,7 +1419,7 @@ HashTable* php_splice(HashTable *in_hash, int offset, int length,
length = num_in-offset;
/* Create and initialize output hash */
- out_hash = (HashTable *)emalloc(sizeof(HashTable));
+ ALLOC_HASHTABLE(out_hash);
zend_hash_init(out_hash, 0, NULL, ZVAL_PTR_DTOR, 0);
/* Start at the beginning of the input hash and copy