mirror of
https://github.com/php/php-src.git
synced 2026-04-25 08:58:28 +02:00
- Use ALLOC_HASHTABLE() instead of emalloc(sizeof(HashTable))
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user