Skip to content

Commit

Permalink
Add private constructor on Metadata classes (#531)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb authored Jul 26, 2022
1 parent 428a552 commit 0aee7cf
Show file tree
Hide file tree
Showing 30 changed files with 341 additions and 19 deletions.
2 changes: 1 addition & 1 deletion metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ static HashTable *get_debug_info(Z_RDKAFKA_OBJ *object, int *is_temp) /* {{{ */
array_init(&ary);

intern = rdkafka_get_debug_object(object_intern, object);
if (!intern) {
if (!intern || !intern->metadata) {
return Z_ARRVAL(ary);
}

Expand Down
3 changes: 3 additions & 0 deletions metadata.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class Metadata
{
/** @implementation-alias RdKafka::__construct */
private function __construct() {}

/** @tentative-return-type */
public function getOrigBrokerId(): int {}

Expand Down
7 changes: 6 additions & 1 deletion metadata_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 7bdf537cb18915955d6c3f1d4775dcc9fc43eb4a */
* Stub hash: 6c980079f802be29ef2c30e235a6071f5c0d628c */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_RdKafka_Metadata_getOrigBrokerId, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
Expand All @@ -13,13 +16,15 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_getTopics arginfo_class_RdKafka_Metadata_getBrokers


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata, getOrigBrokerId);
ZEND_METHOD(RdKafka_Metadata, getOrigBrokerName);
ZEND_METHOD(RdKafka_Metadata, getBrokers);
ZEND_METHOD(RdKafka_Metadata, getTopics);


static const zend_function_entry class_RdKafka_Metadata_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata, getOrigBrokerId, arginfo_class_RdKafka_Metadata_getOrigBrokerId, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata, getOrigBrokerName, arginfo_class_RdKafka_Metadata_getOrigBrokerName, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata, getBrokers, arginfo_class_RdKafka_Metadata_getBrokers, ZEND_ACC_PUBLIC)
Expand Down
2 changes: 1 addition & 1 deletion metadata_broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static HashTable *get_debug_info(Z_RDKAFKA_OBJ *object, int *is_temp) /* {{{ */
array_init(&ary);

intern = rdkafka_get_debug_object(object_intern, object);
if (!intern) {
if (!intern || !intern->metadata_broker) {
return Z_ARRVAL(ary);
}

Expand Down
3 changes: 3 additions & 0 deletions metadata_broker.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class Broker
{
/** @implementation-alias RdKafka::__construct */
private function __construct() {}

/** @tentative-return-type */
public function getId(): int {}

Expand Down
7 changes: 6 additions & 1 deletion metadata_broker_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 53fa93c8908858d59ab75b39a77efdea9e843675 */
* Stub hash: 74c6ee55c31bb86f5bcf71a46607f31688ce71dd */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Broker___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_RdKafka_Metadata_Broker_getId, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
Expand All @@ -10,12 +13,14 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_Broker_getPort arginfo_class_RdKafka_Metadata_Broker_getId


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Broker, getId);
ZEND_METHOD(RdKafka_Metadata_Broker, getHost);
ZEND_METHOD(RdKafka_Metadata_Broker, getPort);


static const zend_function_entry class_RdKafka_Metadata_Broker_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Broker___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Broker, getId, arginfo_class_RdKafka_Metadata_Broker_getId, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Broker, getHost, arginfo_class_RdKafka_Metadata_Broker_getHost, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Broker, getPort, arginfo_class_RdKafka_Metadata_Broker_getPort, ZEND_ACC_PUBLIC)
Expand Down
7 changes: 6 additions & 1 deletion metadata_broker_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 53fa93c8908858d59ab75b39a77efdea9e843675 */
* Stub hash: 74c6ee55c31bb86f5bcf71a46607f31688ce71dd */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Broker___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Broker_getId, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand All @@ -9,12 +12,14 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_Broker_getPort arginfo_class_RdKafka_Metadata_Broker_getId


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Broker, getId);
ZEND_METHOD(RdKafka_Metadata_Broker, getHost);
ZEND_METHOD(RdKafka_Metadata_Broker, getPort);


static const zend_function_entry class_RdKafka_Metadata_Broker_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Broker___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Broker, getId, arginfo_class_RdKafka_Metadata_Broker_getId, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Broker, getHost, arginfo_class_RdKafka_Metadata_Broker_getHost, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Broker, getPort, arginfo_class_RdKafka_Metadata_Broker_getPort, ZEND_ACC_PUBLIC)
Expand Down
2 changes: 1 addition & 1 deletion metadata_collection.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ static HashTable *get_debug_info(Z_RDKAFKA_OBJ *object, int *is_temp) /* {{{ */
array_init(&ary);

intern = rdkafka_get_debug_object(object_intern, object);
if (!intern) {
if (!intern || !intern->items) {
return Z_ARRVAL(ary);
}

Expand Down
3 changes: 3 additions & 0 deletions metadata_collection.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class Collection implements \Countable, \Iterator
{
/** @implementation-alias RdKafka::__construct */
private function __construct() {}

/** @tentative-return-type */
public function count(): int {}

Expand Down
7 changes: 6 additions & 1 deletion metadata_collection_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a84f8bd542d46b72179ff6aa0d9d17bed530a2de */
* Stub hash: 43c071a00a4c0beb6b5c1f8f685e29b746c2d3fb */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Collection___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_RdKafka_Metadata_Collection_count, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
Expand All @@ -18,6 +21,7 @@ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_RdKafka_Metadata
ZEND_END_ARG_INFO()


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Collection, count);
ZEND_METHOD(RdKafka_Metadata_Collection, current);
ZEND_METHOD(RdKafka_Metadata_Collection, key);
Expand All @@ -27,6 +31,7 @@ ZEND_METHOD(RdKafka_Metadata_Collection, valid);


static const zend_function_entry class_RdKafka_Metadata_Collection_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Collection___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Collection, count, arginfo_class_RdKafka_Metadata_Collection_count, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Collection, current, arginfo_class_RdKafka_Metadata_Collection_current, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Collection, key, arginfo_class_RdKafka_Metadata_Collection_key, ZEND_ACC_PUBLIC)
Expand Down
7 changes: 6 additions & 1 deletion metadata_collection_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a84f8bd542d46b72179ff6aa0d9d17bed530a2de */
* Stub hash: 43c071a00a4c0beb6b5c1f8f685e29b746c2d3fb */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Collection___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Collection_count, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand All @@ -15,6 +18,7 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_Collection_valid arginfo_class_RdKafka_Metadata_Collection_count


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Collection, count);
ZEND_METHOD(RdKafka_Metadata_Collection, current);
ZEND_METHOD(RdKafka_Metadata_Collection, key);
Expand All @@ -24,6 +28,7 @@ ZEND_METHOD(RdKafka_Metadata_Collection, valid);


static const zend_function_entry class_RdKafka_Metadata_Collection_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Collection___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Collection, count, arginfo_class_RdKafka_Metadata_Collection_count, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Collection, current, arginfo_class_RdKafka_Metadata_Collection_current, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Collection, key, arginfo_class_RdKafka_Metadata_Collection_key, ZEND_ACC_PUBLIC)
Expand Down
7 changes: 6 additions & 1 deletion metadata_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 7bdf537cb18915955d6c3f1d4775dcc9fc43eb4a */
* Stub hash: 6c980079f802be29ef2c30e235a6071f5c0d628c */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_getOrigBrokerId, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand All @@ -11,13 +14,15 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_getTopics arginfo_class_RdKafka_Metadata_getOrigBrokerId


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata, getOrigBrokerId);
ZEND_METHOD(RdKafka_Metadata, getOrigBrokerName);
ZEND_METHOD(RdKafka_Metadata, getBrokers);
ZEND_METHOD(RdKafka_Metadata, getTopics);


static const zend_function_entry class_RdKafka_Metadata_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata, getOrigBrokerId, arginfo_class_RdKafka_Metadata_getOrigBrokerId, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata, getOrigBrokerName, arginfo_class_RdKafka_Metadata_getOrigBrokerName, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata, getBrokers, arginfo_class_RdKafka_Metadata_getBrokers, ZEND_ACC_PUBLIC)
Expand Down
2 changes: 1 addition & 1 deletion metadata_partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static HashTable *get_debug_info(Z_RDKAFKA_OBJ *object, int *is_temp) /* {{{ */
array_init(&ary);

intern = rdkafka_get_debug_object(object_intern, object);
if (!intern) {
if (!intern || !intern->metadata_partition) {
return Z_ARRVAL(ary);
}

Expand Down
3 changes: 3 additions & 0 deletions metadata_partition.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class Partition
{
/** @implementation-alias RdKafka::__construct */
private function __construct() {}

/** @tentative-return-type */
public function getId(): int {}

Expand Down
7 changes: 6 additions & 1 deletion metadata_partition_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4c02c5ac3a6240ab8cbc90451bdc54a3de2c2d2f */
* Stub hash: ce824cf273ec8fec1fe3b6eaac015a51f3e9dc6b */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Partition___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_RdKafka_Metadata_Partition_getId, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
Expand All @@ -14,6 +17,7 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_Partition_getIsrs arginfo_class_RdKafka_Metadata_Partition_getReplicas


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Partition, getId);
ZEND_METHOD(RdKafka_Metadata_Partition, getErr);
ZEND_METHOD(RdKafka_Metadata_Partition, getLeader);
Expand All @@ -22,6 +26,7 @@ ZEND_METHOD(RdKafka_Metadata_Partition, getIsrs);


static const zend_function_entry class_RdKafka_Metadata_Partition_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Partition___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Partition, getId, arginfo_class_RdKafka_Metadata_Partition_getId, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Partition, getErr, arginfo_class_RdKafka_Metadata_Partition_getErr, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Partition, getLeader, arginfo_class_RdKafka_Metadata_Partition_getLeader, ZEND_ACC_PUBLIC)
Expand Down
7 changes: 6 additions & 1 deletion metadata_partition_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4c02c5ac3a6240ab8cbc90451bdc54a3de2c2d2f */
* Stub hash: ce824cf273ec8fec1fe3b6eaac015a51f3e9dc6b */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Partition___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Partition_getId, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand All @@ -13,6 +16,7 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_Partition_getIsrs arginfo_class_RdKafka_Metadata_Partition_getId


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Partition, getId);
ZEND_METHOD(RdKafka_Metadata_Partition, getErr);
ZEND_METHOD(RdKafka_Metadata_Partition, getLeader);
Expand All @@ -21,6 +25,7 @@ ZEND_METHOD(RdKafka_Metadata_Partition, getIsrs);


static const zend_function_entry class_RdKafka_Metadata_Partition_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Partition___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Partition, getId, arginfo_class_RdKafka_Metadata_Partition_getId, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Partition, getErr, arginfo_class_RdKafka_Metadata_Partition_getErr, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Partition, getLeader, arginfo_class_RdKafka_Metadata_Partition_getLeader, ZEND_ACC_PUBLIC)
Expand Down
2 changes: 1 addition & 1 deletion metadata_topic.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static HashTable *get_debug_info(Z_RDKAFKA_OBJ *object, int *is_temp) /* {{{ */
array_init(&ary);

intern = rdkafka_get_debug_object(object_intern, object);
if (!intern) {
if (!intern || !intern->metadata_topic) {
return Z_ARRVAL(ary);
}

Expand Down
3 changes: 3 additions & 0 deletions metadata_topic.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class Topic
{
/** @implementation-alias RdKafka::__construct */
private function __construct() {}

/** @tentative-return-type */
public function getTopic(): string {}

Expand Down
7 changes: 6 additions & 1 deletion metadata_topic_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 90ddb49b26a651772f9b71a1233435f2a502af6d */
* Stub hash: 04fd71ae954bd0a09730d401c8160574e1045369 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Topic___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_INFO_EX(arginfo_class_RdKafka_Metadata_Topic_getTopic, 0, 0, IS_STRING, 0)
ZEND_END_ARG_INFO()
Expand All @@ -11,12 +14,14 @@ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_OBJ_INFO_EX(arginfo_class_RdKafka_Metadata_
ZEND_END_ARG_INFO()


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Topic, getTopic);
ZEND_METHOD(RdKafka_Metadata_Topic, getErr);
ZEND_METHOD(RdKafka_Metadata_Topic, getPartitions);


static const zend_function_entry class_RdKafka_Metadata_Topic_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Topic___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Topic, getTopic, arginfo_class_RdKafka_Metadata_Topic_getTopic, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Topic, getErr, arginfo_class_RdKafka_Metadata_Topic_getErr, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Topic, getPartitions, arginfo_class_RdKafka_Metadata_Topic_getPartitions, ZEND_ACC_PUBLIC)
Expand Down
7 changes: 6 additions & 1 deletion metadata_topic_legacy_arginfo.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 90ddb49b26a651772f9b71a1233435f2a502af6d */
* Stub hash: 04fd71ae954bd0a09730d401c8160574e1045369 */

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Topic___construct, 0, 0, 0)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_class_RdKafka_Metadata_Topic_getTopic, 0, 0, 0)
ZEND_END_ARG_INFO()
Expand All @@ -9,12 +12,14 @@ ZEND_END_ARG_INFO()
#define arginfo_class_RdKafka_Metadata_Topic_getPartitions arginfo_class_RdKafka_Metadata_Topic_getTopic


ZEND_METHOD(RdKafka, __construct);
ZEND_METHOD(RdKafka_Metadata_Topic, getTopic);
ZEND_METHOD(RdKafka_Metadata_Topic, getErr);
ZEND_METHOD(RdKafka_Metadata_Topic, getPartitions);


static const zend_function_entry class_RdKafka_Metadata_Topic_methods[] = {
ZEND_MALIAS(RdKafka, __construct, __construct, arginfo_class_RdKafka_Metadata_Topic___construct, ZEND_ACC_PRIVATE)
ZEND_ME(RdKafka_Metadata_Topic, getTopic, arginfo_class_RdKafka_Metadata_Topic_getTopic, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Topic, getErr, arginfo_class_RdKafka_Metadata_Topic_getErr, ZEND_ACC_PUBLIC)
ZEND_ME(RdKafka_Metadata_Topic, getPartitions, arginfo_class_RdKafka_Metadata_Topic_getPartitions, ZEND_ACC_PUBLIC)
Expand Down
8 changes: 7 additions & 1 deletion package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
<file role="test" name="integration-tests-check.php"/>
<file role="test" name="kafka_error_exception.phpt"/>
<file role="test" name="message_headers.phpt"/>
<file role="test" name="metadata_001.phpt"/>
<file role="test" name="metadata_broker_001.phpt"/>
<file role="test" name="metadata_collection_001.phpt"/>
<file role="test" name="metadata_partition_001.phpt"/>
<file role="test" name="metadata_topic_001.phpt"/>
<file role="test" name="new_topic_with_conf.phpt"/>
<file role="test" name="pause_resume.phpt"/>
<file role="test" name="produce_consume.phpt"/>
Expand All @@ -140,7 +145,8 @@
<file role="test" name="test0.phpt"/>
<file role="test" name="test_env.php.sample"/>
<file role="test" name="topic_conf.phpt"/>
<file role="test" name="topic_partition.phpt"/>
<file role="test" name="topic_partition_001.phpt"/>
<file role="test" name="topic_partition_002.phpt"/>
</dir>
</dir>
</contents>
Expand Down
2 changes: 1 addition & 1 deletion php_rdkafka_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@

#define Z_RDKAFKA_PROP_OBJ(object) object

#define rdkafka_get_debug_object(type, object) get_object(object)
#define rdkafka_get_debug_object(type, object) php_kafka_from_obj(type, Z_OBJ_P(object))

#if PHP_MINOR_VERSION < 3
/* Allocates object type and zeros it, but not the properties.
Expand Down
Loading

0 comments on commit 0aee7cf

Please sign in to comment.