Sqlsrv runs on php 5.4

I just upgraded from PHP 5.3.10 to 5.4, now I get the following when trying to initialize php at the command prompt in windows:

C:\php5.4>php -v PHP Warning: PHP Startup: sqlsrv: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20100525 These options need to match in Unknown on line 0 PHP 5.4.0 (cli) (built: Feb 29 2012 19:06:50) Copyright (c) 1997-2012 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies 

It must be a direct exchange. I downloaded php php version (as well as version 5.3.10) and referenced php_sqlsrv_53_nts_vc9.dll (v2) sqlsrv.

Of interest, I also have the sqlsrv v3.0 extension, which I tried to download and get the same error.

Has anyone else had this problem or know how to fix it?

TIA

D

+7
source share
2 answers

It looks like the version of DLL you have for PHP 5.3

I'm still not sure if there is a version for 5.4, but you can check PHP Extensions for Windows to view.

The Microsoft system requirements page indicates that it is not listed (although it may not have been updated yet).

+10
source
0
source

All Articles