mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
This commit is contained in:
parent
e4f109b69f
commit
c977f29862
11 changed files with 17 additions and 17 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue