MAKE_STD_ZVAL(post);
array_init(post);
- if (post_data && (Z_TYPE_P(post_data) == IS_ARRAY)) {
+ if (post_data && zend_hash_num_elements(Z_ARRVAL_P(post_data))) {
array_copy(post_data, post);
}
SET_PROP(obj, postFields, post);
}
add_next_index_zval(new_post, entry);
SET_PROP(obj, postFiles, new_post);
+ zval_ptr_dtor(&new_post);
RETURN_TRUE;
}