File tree 1 file changed +10
-9
lines changed 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -97,30 +97,31 @@ kafka_topic_partition_intern * get_topic_partition_object(zval *z) /* {{{ */
97
97
98
98
static HashTable * get_debug_info (Z_KAFKA_OBJ * object , int * is_temp ) /* {{{ */
99
99
{
100
- zval ary ;
100
+ zval arr ;
101
101
object_intern * intern ;
102
102
103
103
* is_temp = 1 ;
104
104
105
- array_init (& ary );
105
+ array_init (& arr );
106
106
107
107
intern = kafka_get_debug_object (object_intern , object );
108
108
109
109
if (!intern ) {
110
- return Z_ARRVAL (ary );
110
+ return Z_ARRVAL (arr );
111
111
}
112
112
113
113
if (intern -> topic ) {
114
- add_assoc_string (& ary , "topic" , intern -> topic );
114
+ add_assoc_string (& arr , "topic" , intern -> topic );
115
115
} else {
116
- add_assoc_null (& ary , "topic" );
116
+ add_assoc_null (& arr , "topic" );
117
117
}
118
118
119
- add_assoc_long (& ary , "partition" , intern -> partition );
120
- add_assoc_long (& ary , "offset" , intern -> offset );
121
- add_assoc_zval (& ary , "metadata" , & intern -> metadata );
119
+ add_assoc_long (& arr , "partition" , intern -> partition );
120
+ add_assoc_long (& arr , "offset" , intern -> offset );
121
+ Z_TRY_ADDREF_P (& intern -> metadata );
122
+ add_assoc_zval (& arr , "metadata" , & intern -> metadata );
122
123
123
- return Z_ARRVAL (ary );
124
+ return Z_ARRVAL (arr );
124
125
}
125
126
/* }}} */
126
127
You can’t perform that action at this time.
0 commit comments