These are chat archives for arnaud-lb/php-rdkafka

1st
Nov 2017
Mohsen Ibrahim
@mohsenSy
Nov 01 2017 13:51
Hello again
I am trying this example here it gives me this error Did you forget a "use" statement for "Kafka\Producer"?
Robert Slootjes
@slootjes
Nov 01 2017 13:52
then probably the extension isn't loaded
Mohsen Ibrahim
@mohsenSy
Nov 01 2017 13:52
If I put use Kafka\Producer; I still get the same error
Robert Slootjes
@slootjes
Nov 01 2017 13:52
maybe you have a different ini file for CLI
Mohsen Ibrahim
@mohsenSy
Nov 01 2017 13:52
image.png
Robert Slootjes
@slootjes
Nov 01 2017 13:53
thats web, not cli
Mohsen Ibrahim
@mohsenSy
Nov 01 2017 13:53
This is from the output of phpinfo in the web browser
Robert Slootjes
@slootjes
Nov 01 2017 13:53
and do you run the example from your browser too?
Mohsen Ibrahim
@mohsenSy
Nov 01 2017 13:53
yes
Robert Slootjes
@slootjes
Nov 01 2017 13:54
I had the same issue where cli was using a different ini file from web where I didn't add the extension, that's why
Mohsen Ibrahim
@mohsenSy
Nov 01 2017 13:55
I am running a symfony application