Php Rdkafka Versions Save

Production-ready, stable Kafka client for PHP

4.1.1

3 years ago

BREAKING CHANGE: Since version 4.0, the client no longer polls for network
events at shutdown (during object destructor). This behaviour didn't give
enough control to the user in case of server issue, and could cause the script to hang while terminating.

Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

Bugfixes

  • Fix windows pecl build (#402, @nick-zh)

4.1.0

3 years ago

BREAKING CHANGE: Since version 4.0, the client no longer polls for network
events at shutdown (during object destructor). This behaviour didn't give
enough control to the user in case of server issue, and could cause the script to hang while terminating.

Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

Features

  • Add transactional producer support (#359, @nick-zh)

4.0.4

3 years ago

BREAKING CHANGE: Since version 4.0, the client no longer polls for network
events at shutdown (during object destructor). This behaviour didn't give
enough control to the user in case of server issue, and could cause the script to hang while terminating.

Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

Bugfixes

  • Fix crash during shurtdown (#367, @nick-zh, @sofire)

Enhancements

  • Improved CI (@Steveb-p, @arnaud-lb)

Documentation

  • Improved doc (@nick-zh, @Steveb-p)

4.0.3

4 years ago

BREAKING CHANGE: Since version 4.0, the client no longer polls for network events at shutdown (during object destructor). This behaviour didn't give enough control to the user in case of server issue, and could cause the script to hang while terminating.

Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

Improvements

  • Add partition check for offsetStore (#331, @nick-zh)
  • Naming consistency for setting in tests (#339, @romainneutron)

Bugfixes

  • Fix headers containing null bytes (#338, @arnaud-lb, @dirx @nick-zh)
  • Fix topic deconstruct for high level consumer (#333, @nick-zh)

Documentation

  • Fix doc example (#340, @Steveb-p)
  • Remove outdated and duplicate examples (#341, @nick-zh)

4.0.2

4 years ago

BREAKING CHANGE: Since version 4.0, the client no longer polls for network events at shutdown (during object destructor). This behaviour didn't give enough control to the user in case of server issue, and could cause the script to hang while terminating.

Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

Enhancements

  • internal improvements: warnings and types (#322, @remicollet)

Bugfixes

  • Fix partition 0 exposed as NULL in Message (#327 reverts #321, @arnaud-lb @nick-zh)
  • Fix memory leak in consume() when messages have headers (#323, @nick-zh)

4.0.1

4 years ago

WARNING BREAKS CONSUMERS: #324 , stick to php-rdkafka:4.0.0 for now

BREAKING CHANGE: Since version 4.0, the client no longer polls for network events at shutdown (during object destructor). This behaviour didn't give enough control to the user in case of server issue, and could cause the script to hang while terminating.

Starting from 4.0, programs MUST call flush() before shutting down, otherwise some messages and callbacks may be lost.

Features

  • Added RdKafka\ConsumerTopic::consumeCallback() (#310, @nick-zh)

Enhancements

  • Run integration tests in CI (#223, @Steveb-p)
  • Improved README (#295 #297 #298, #307 @Steveb-p @sndsgd @nick-zh)
  • Fix windows test cases (#296, @cmb69)
  • Add testsuite in pecl archive (#291, @remicollet)
  • Add editor config (#308, @Steveb-p)

Bugfixes

  • Fix build (#290, @nick-zh)
  • Fix segfault during module shutdown (#294, @arnaud-lb @nick-zh)
  • Fix RdKafka\Topic visibility in PHP 7.4 (#316, @nick-zh)
  • Fix headers memory management in producev (#318 , @nick-zh)
  • Fix partition number in error (#321, @nick-zh)

3.1.3

4 years ago
  • Fix segfault during module shutdown (#293, @arnaud-lb @nick-zh)
  • Fix RdKafka\Topic visibility in PHP 7.4 (#316, @nick-zh)

4.0.0

4 years ago

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)

3.1.2

4 years ago

Fix build

3.1.1

4 years ago

Features

  • Expose query watermark offsets (#219, @gytislakavicius)

Enhancements

  • Support sending timestamp (epoch ms) in producev (#228, @lkm)

Fixes

  • Fix KafkaTopic::producev causing segfault on librdkafka 1.0.0 (#222, @Steveb-p)
  • Fix version parsing (#224, @dariuskasiulevicius)