- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))

This commit is contained in:
Andi Gutmans 2001-06-19 16:03:35 +00:00
parent e4f109b69f
commit c977f29862
11 changed files with 17 additions and 17 deletions

View file

@ -713,7 +713,7 @@ JNIEXPORT void JNICALL Java_net_php_reflect_setResultFromObject
if (presult->type != IS_OBJECT) {
presult->type=IS_OBJECT;
presult->value.obj.ce=&java_class_entry;
presult->value.obj.properties = (HashTable *) emalloc(sizeof(HashTable));
ALLOC_HASHTABLE(presult->value.obj.properties);
presult->is_ref=1;
presult->refcount=1;
zend_hash_init(presult->value.obj.properties, 0, NULL, ZVAL_PTR_DTOR, 0);