php-rdkafka
php-rdkafka copied to clipboard
Call to undefined method RdKafka\Producer::oauthbearerSetToken() on 6.0.5
Description
I have updated to 6.0.5, which has oauth support according to the release docs and other issues on here. I updated librdkafka with yum install librdkafka-devel then ran the pecl upgrade. Everything's fine there, 6.0.5 is installed.
However, when I try to use any oauth functions on my producer they fail.
$conf = new \RdKafka\Conf();
$conf->setOauthbearerTokenRefreshCb(function () {
$this->setProviderOauthToken();
});
-------------------------------------------------------------
Call to undefined method RdKafka\Conf::setOauthbearerTokenRefreshCb()
$producer = new \RdKafka\Producer($conf);
$producer->oauthbearerSetToken(<valid token stuff>);
--------------------------------------------------------------
Call to undefined method RdKafka\Producer::oauthbearerSetToken()
PHP was not running when I did the upgrade, and for good measure I rebooted the machine after the upgrade was done. What am I missing? How can 6.0.5 be installed but the methods that it contains aren't present?
php-rdkafka Version
6.0.5
librdkafka Version
0.11.4
PHP Version
8.2.20
Operating System
No response
Kafka Version
No response