SQLSRV PDO could not be found

不羁岁月 提交于 2019-12-22 18:49:49

问题


I'm trying to configure php_pdo_sqlsrv_55_ts.dll on Windows 7 x64, with on board XAMPP x86.

I've correctly installed the SQL Native Client 2012 and the Microsoft Visual C++ Redistributable (x64) package (I don't know if the last one is needed or not).

I've copied to C:\xampp\php\ext\ both the php_pdo_sqlsrv_55_ts.dll and the php_sqlsrv_55_ts.dll libraries downloaded from the unofficial release found here.

Then I've edited the php.ini adding the two libraries and restarted the Apache web server but in the phpinfo() page there are not traces of the sqlsrv driver.

The Apache error log says:

[21-Jan-2014 10:56:56 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_pdo_sqlsrv_55_ts.dll' - Could not find the specified module.

 in Unknown on line 0

[21-Jan-2014 11:01:08 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\xampp\php\ext\php_sqlsrv_55_ts.dll' - Could not find the specified module.

 in Unknown on line 0

What am I doing wrong? If I try to open the specified paths I can correctly find the 2 dll.


回答1:


You have installed this:

  • Microsoft Visual C++ Redistributable (x64)

... but you need the x86 version since that's the architecture of your extension.



来源:https://stackoverflow.com/questions/21256549/sqlsrv-pdo-could-not-be-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!