-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: require v2.3 of rdkafka for oauth bearer token refresh cb
- Loading branch information
1 parent
23be745
commit 2b44d40
Showing
4 changed files
with
37 additions
and
4 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
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,18 @@ | ||
--TEST-- | ||
RdKafka\Conf | ||
--SKIPIF-- | ||
<?php | ||
RD_KAFKA_VERSION >= 0x230000 || die("skip librdkafka too old"); | ||
--FILE-- | ||
<?php | ||
|
||
$conf = new RdKafka\Conf(); | ||
|
||
echo "Setting oauth token bearer callback\n"; | ||
$conf->setOauthbearerTokenRefreshCb(function () {}); | ||
$dump = $conf->dump(); | ||
var_dump(isset($dump["oauthbearer_token_refresh_cb"])); | ||
|
||
--EXPECT-- | ||
Setting oauth token bearer callback | ||
bool(true) |
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