Skip to content

Commit

Permalink
Fix librdkafka 1.6 tests (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb authored Jan 14, 2021
1 parent 3ee8765 commit ec302d2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
- php: '7.4.0'
librdkafka: 'v1.5.0'
memcheck: '1'
- php: '8.0.0'
librdkafka: 'v1.6.0-RC1'
- php: '7.4.0'
librdkafka: 'v1.6.0-RC1'
- php: '7.3.0'
librdkafka: 'v1.6.0-RC1'
- php: '8.0.0'
librdkafka: 'v1.5.0'
- php: '7.4.0'
Expand Down
4 changes: 3 additions & 1 deletion rdkafka.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ static void kafka_init(zval *this_ptr, rd_kafka_type_t type, zval *zconf) /* {{{

intern->cbs.zrk = *this_ptr;
rd_kafka_conf_set_opaque(conf, &intern->cbs);
rd_kafka_conf_set_dr_msg_cb(conf, kafka_conf_dr_msg_cb);
if (type == RD_KAFKA_PRODUCER) {
rd_kafka_conf_set_dr_msg_cb(conf, kafka_conf_dr_msg_cb);
}

rk = rd_kafka_new(type, conf, errstr, sizeof(errstr));

Expand Down

0 comments on commit ec302d2

Please sign in to comment.