PHP Startup: Unable to load dynamic library php_couchbase.dll

I am using CouchBase with XAMPP.
My PHP Version 7.1.9
Compiler MSVC14 (Visual C++ 2015)
Architecture x86

Couchbase is running without any issue but I am facing a warning in the console is
PHP Warning: PHP Startup: Unable to load dynamic library D:\xampp\php\ext\php_couchbase.dll' - %1 is not a valid Win32 application. in Unknown on line 0
I also try to use x64 Extention but the warning is always there.
Is there any way to get rid of this warning? I am facing other PHP problems because of it.

Hi @Tanzeel_Ur_Rehman, are you sure that libcouchbase.dll lives in the %PATH% or in the php.exe directory or in your webserver’s directory? Maybe it just cannot load the dependencies. Also it does not make sense to use x64 extension with x86 PHP interpreter. Another thing you have to check is whether your PHP interpreter compiled with ZTS (multi-threading support) or not. And use appropriate version of the extension (What version of PHP Couchbase extension are you using by the way, and how did you obtain it?).