加载PHP扩展,提示编译器问题,用VS2008编译源码,还是不行

phpinfo】
Compiler MSVC9 (Visual C++ 2008)
Architecture x86
PHP API 20100412
PHP Extension 20100525
...

我下载了 saprfc源码,还专门下载了vs2008,编译生成了php_saprfc_528.dll
修改扩展配置文件,加
extension=php_saprfc_528.dll

启动APACHE,出现WARNING,注释掉那行配置就没有:

PHP Warning: PHP Startup: saprfc: Unable to initialize module
Module compiled with module API=20060613
PHP compiled with module API=20100525
These options need to match in Unknown on line 0

为什么还是提示Module compiled with module API=20060613??

应该是版本不一致导致此类型的错误的,请你检查一下吧。

版本不对。已经有提示了。

VS的版本要跟php编译的版本严格一致。你先看php具体编译到的VS2008是不是有sp等,环境要配置相同。

http://blog.163.com/lgh_2002/blog/static/4401752620118272362344/