The new PECL package rdkafka-4.0.0 (stable) has been released at https://pecl.php.net/.
Release notes ------------- BREAKING CHANGE: Since version 4.0, the client longer polls for network events at shutdown (during object destructor). This behaviour didn't give enought control to the user in case of server issue, and could cause the script to hang while terminating. Starting from this version, programs MUST now call flush() before shutting down, otherwise some messages and callbacks may be lost. ## Features * Added RdKafka\Kafka::offsetsForTimes(), RdKafka\KafkaConsumer::offsetsForTimes() (#238, #270, @nick-zh) * Added RdKafka\KafkaConsumer::getOffsetPositions() (#244, @nick-zh) * Added RdKafka\Kafka::purge() (#255, @nick-zh) * Added RdKafka\Kafka::flush() (#264, @nick-zh) * Added RdKafka\ConsumerTopic::consumeBatch() (#256, @nick-zh) * Added RdKafka\Conf::setLogCb() (#253, @nick-zh) * Added RdKafka\KafkaConsumer::queryWatermarkOffsets() (#271, @nick-zh) * Added RdKafka\KafkaConsumer::close() (#144, @TiMESPLiNTER) ## Enhancements * Support block on full producer queue (RD_KAFKA_MSG_F_BLOCK) (#245, @nick-zh) * Add additional partitioners (#267, @nick-zh) * Fix phpinfo output (#172, @TiMESPLiNTER) * Don't poll in destruct anymore (#264, #278, @nick-zh) ## Bugfixes * Fix segfault, remove Producer::newQueue (#273, @nick-zh) ## General * Dropping support for librdkafka below 0.11 (#247, @arnaud-lb) * Update build matrix PHP 7.3 + nightly, librdkafka 1.x + master (#249, @arnaud-lb) * Deprecating deprecated librdkafka functions (#266, #254, #251, @nick-zh) Package Info ------------- This extension is a librdkafka binding providing a working client for Kafka Related Links ------------- Package home: https://pecl.php.net/package/rdkafka Changelog: https://pecl.php.net/package-changelog.php?package=rdkafka Download: https://pecl.php.net/get/rdkafka-4.0.0.tgz Authors ------------- Arnaud Le Blanc (lead) -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php