Php-rdkafka: php_rdkafka.dll is not a valid Win32 application (64 bit)

Created on 23 Feb 2018  路  2Comments  路  Source: arnaud-lb/php-rdkafka

Trying to run the x64 build but php doesn't recognise the DLL as valid:

PHP Warning: PHP Startup: Unable to load dynamic library 'php_rdkafka.dll' (tried: C:/php-7.2.2-nts-Win32-VC15-x64/extphp_rdkafka.dll (%1 is not a valid Win32 application.
), C:/php-7.2.2-nts-Win32-VC15-x64/extphp_php_rdkafka.dll.dll (The specified module could not be found.
)) in Unknown on line 0

Using:

The same setup works using the x86 builds !

wait-info

Most helpful comment

Have the same issue, but found the reason.
Please check that your PHP root folder contain librdkafka.dll (./ext/.../librdkafka.dll)

All 2 comments

@aand18 do you still need help with this? Also this part in the error strikes me as a bit odd, the naming seems kind of messed up:

php_php_rdkafka.dll.dll (The specified module could not be found.

Have the same issue, but found the reason.
Please check that your PHP root folder contain librdkafka.dll (./ext/.../librdkafka.dll)

Was this page helpful?
0 / 5 - 0 ratings