Reputation: 2122
I've worked with Visual Studio 2008(visual c) to create a php extension, so after writing the c code and compiling the whole project, A dll file has been generated in the debug folder. I copied this dll file to the php /ext folder ( extensions folder) and I added this line in php.ini
extension=php_talkphp.dll (php_talkphp.dll is the dll name)
then I restart apache server to initialise php extensions. but an error has occured : and this is the error message:
I know that this is due to the compiler version, but How can I use the Vc6 version in a VS2008?
thank you
Upvotes: 1
Views: 1976
Reputation: 79911
You need to use the extensions built with the same compiler as your PHP install.
In this case - you are using an installation of PHP built with Visual C++ 6, which is an incredibly old compiler. Your extension is built with Visual C++ 9.0, which is much newer.
You can not mix extensions and PHP installs built with different VC compilers.
Possible solutions:
or
Upvotes: 1