-
-
Notifications
You must be signed in to change notification settings - Fork 265
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
114 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
/** | ||
* @generate-function-entries | ||
* @generate-legacy-arginfo | ||
*/ | ||
|
||
function rd_kafka_get_err_descs(): array {} | ||
|
||
function rd_kafka_err2name(int $err): ?string {} | ||
|
||
function rd_kafka_err2str(int $err): ?string {} | ||
|
||
/** @deprecated */ | ||
function rd_kafka_errno2err(int $errnox): int {} | ||
|
||
/** @deprecated */ | ||
function rd_kafka_errno(): int {} | ||
|
||
function rd_kafka_offset_tail(int $cnt): int {} | ||
|
||
function rd_kafka_thread_cnt(): int {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* This is a generated file, edit the .stub.php file instead. | ||
* Stub hash: 0e1e56d853a47168a1f7f0950b674c2de6a91976 */ | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_rd_kafka_get_err_descs, 0, 0, IS_ARRAY, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_rd_kafka_err2name, 0, 1, IS_STRING, 1) | ||
ZEND_ARG_TYPE_INFO(0, err, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_rd_kafka_err2str arginfo_rd_kafka_err2name | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_rd_kafka_errno2err, 0, 1, IS_LONG, 0) | ||
ZEND_ARG_TYPE_INFO(0, errnox, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_rd_kafka_errno, 0, 0, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_rd_kafka_offset_tail, 0, 1, IS_LONG, 0) | ||
ZEND_ARG_TYPE_INFO(0, cnt, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_rd_kafka_thread_cnt arginfo_rd_kafka_errno | ||
|
||
|
||
ZEND_FUNCTION(rd_kafka_get_err_descs); | ||
ZEND_FUNCTION(rd_kafka_err2name); | ||
ZEND_FUNCTION(rd_kafka_err2str); | ||
ZEND_FUNCTION(rd_kafka_errno2err); | ||
ZEND_FUNCTION(rd_kafka_errno); | ||
ZEND_FUNCTION(rd_kafka_offset_tail); | ||
ZEND_FUNCTION(rd_kafka_thread_cnt); | ||
|
||
|
||
static const zend_function_entry ext_functions[] = { | ||
ZEND_FE(rd_kafka_get_err_descs, arginfo_rd_kafka_get_err_descs) | ||
ZEND_FE(rd_kafka_err2name, arginfo_rd_kafka_err2name) | ||
ZEND_FE(rd_kafka_err2str, arginfo_rd_kafka_err2str) | ||
ZEND_DEP_FE(rd_kafka_errno2err, arginfo_rd_kafka_errno2err) | ||
ZEND_DEP_FE(rd_kafka_errno, arginfo_rd_kafka_errno) | ||
ZEND_FE(rd_kafka_offset_tail, arginfo_rd_kafka_offset_tail) | ||
ZEND_FE(rd_kafka_thread_cnt, arginfo_rd_kafka_thread_cnt) | ||
ZEND_FE_END | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* This is a generated file, edit the .stub.php file instead. | ||
* Stub hash: 0e1e56d853a47168a1f7f0950b674c2de6a91976 */ | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_rd_kafka_get_err_descs, 0, 0, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_rd_kafka_err2name, 0, 0, 1) | ||
ZEND_ARG_INFO(0, err) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_rd_kafka_err2str arginfo_rd_kafka_err2name | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_rd_kafka_errno2err, 0, 0, 1) | ||
ZEND_ARG_INFO(0, errnox) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_rd_kafka_errno arginfo_rd_kafka_get_err_descs | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_rd_kafka_offset_tail, 0, 0, 1) | ||
ZEND_ARG_INFO(0, cnt) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_rd_kafka_thread_cnt arginfo_rd_kafka_get_err_descs | ||
|
||
|
||
ZEND_FUNCTION(rd_kafka_get_err_descs); | ||
ZEND_FUNCTION(rd_kafka_err2name); | ||
ZEND_FUNCTION(rd_kafka_err2str); | ||
ZEND_FUNCTION(rd_kafka_errno2err); | ||
ZEND_FUNCTION(rd_kafka_errno); | ||
ZEND_FUNCTION(rd_kafka_offset_tail); | ||
ZEND_FUNCTION(rd_kafka_thread_cnt); | ||
|
||
|
||
static const zend_function_entry ext_functions[] = { | ||
ZEND_FE(rd_kafka_get_err_descs, arginfo_rd_kafka_get_err_descs) | ||
ZEND_FE(rd_kafka_err2name, arginfo_rd_kafka_err2name) | ||
ZEND_FE(rd_kafka_err2str, arginfo_rd_kafka_err2str) | ||
ZEND_DEP_FE(rd_kafka_errno2err, arginfo_rd_kafka_errno2err) | ||
ZEND_DEP_FE(rd_kafka_errno, arginfo_rd_kafka_errno) | ||
ZEND_FE(rd_kafka_offset_tail, arginfo_rd_kafka_offset_tail) | ||
ZEND_FE(rd_kafka_thread_cnt, arginfo_rd_kafka_thread_cnt) | ||
ZEND_FE_END | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters