Skip to content

Commit

Permalink
4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Oct 4, 2019
1 parent 4c29210 commit a972d42
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 5 deletions.
58 changes: 54 additions & 4 deletions package2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,53 @@
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2019-07-08</date>
<date>2019-10-04</date>
<time>12:00:00</time>
<version>
<release>3.1.2</release>
<api>1.0.0</api>
<release>4.0.0</release>
<api>4.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/mit-license.php">MIT License</license>
<notes>
* Fix build
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)
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -81,6 +115,22 @@
<providesextension>rdkafka</providesextension>
<extsrcrelease/>
<changelog>
<release>
<date>2019-07-08</date>
<time>12:00:00</time>
<version>
<release>3.1.2</release>
<api>1.0.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://opensource.org/licenses/mit-license.php">MIT License</license>
<notes>
* Fix build
</notes>
</release>
<release>
<date>2019-07-03</date>
<time>12:00:00</time>
Expand Down
2 changes: 1 addition & 1 deletion php_rdkafka.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ PHP_METHOD(RdKafka, __construct);
extern zend_module_entry rdkafka_module_entry;
#define phpext_rdkafka_ptr &rdkafka_module_entry

#define PHP_RDKAFKA_VERSION "3.1.3-dev"
#define PHP_RDKAFKA_VERSION "4.0.0"

extern zend_object_handlers kafka_default_object_handlers;
extern zend_class_entry * ce_kafka_exception;
Expand Down

0 comments on commit a972d42

Please sign in to comment.