File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -423,6 +423,7 @@ PHP_METHOD(RdKafka__ProducerTopic, producev)
423
423
arglen_t key_len = 0 ;
424
424
rd_kafka_resp_err_t err ;
425
425
kafka_topic_object * intern ;
426
+ kafka_object * kafka_intern ;
426
427
HashTable * headersParam = NULL ;
427
428
HashPosition headersParamPos ;
428
429
char * header_key ;
@@ -464,8 +465,13 @@ PHP_METHOD(RdKafka__ProducerTopic, producev)
464
465
headers = rd_kafka_headers_new (0 );
465
466
}
466
467
468
+ kafka_intern = get_kafka_object (P_ZEVAL (intern -> zrk ) TSRMLS_CC );
469
+ if (!kafka_intern ) {
470
+ return ;
471
+ }
472
+
467
473
err = rd_kafka_producev (
468
- NULL ,
474
+ kafka_intern -> rk ,
469
475
RD_KAFKA_V_RKT (intern -> rkt ),
470
476
RD_KAFKA_V_PARTITION (partition ),
471
477
RD_KAFKA_V_MSGFLAGS (msgflags | RD_KAFKA_MSG_F_COPY ),
You can’t perform that action at this time.
0 commit comments