msphpsql: PHP 7.1 - Unable to load extension, PHP 7.0.x is fine
On Windows 10 64bit with PHP 7.1 beta2, i am unable to load php_sqlsrv_ts.dll, newest release from 4.1.0 Windows. https://github.com/Azure/msphpsql/releases/download/4.1.0/php_sqlsrv_4.1.0_x64.zip
I have installed Microsoft ODBC Driver 11, 12, 13.1 but nothing worked, i still cannot get the extension to load. If i switch back newest PHP 7.0.x (simply overwriting the files) and restart apache, all work fine with the 4.1.0 release from sqlsrv.
So, i have no idea how to fix this. Is it a bug in the sqlsrv driver or in PHP 7.1?
The exact and only error message i get is: in Unknown on line 0 [19-Aug-2016 05:55:14 UTC] PHP Warning: PHP Startup: Unable to load dynamic library '/srv/php7/ext\php_sqlsrv_7_ts.dll' - Die angegebene Prozedur wurde nicht gefunden. in Unknown on line 0
With PHP 7.0.x there is no such error and all work as expected.
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 43 (8 by maintainers)
@nessroman I have the same problem,according to your method, I have solved it. Thank you so much.
@nessroman, you need to download the latest RC shown above:
https://github.com/Microsoft/msphpsql/releases/tag/v4.1.3-Windows
This is the release for PHP 7.1 support.
Thank you. Works great with newest RC candiate of PHP 7.1 - This is all what i’ve expected, a release of that driver before PHP 7.1 stable release. Great support, thanks.
SOLVED all my issues, just setting in httpd.conf
PHPInidir=<phppath> ( i.e. C:\PHP7 )
must check if the extensions are loading in php ( not apache ) with
php -m
on a command line
@yitam thanks for comments and i solved already from previous comments.It was fantastic after few days to came into success.
@yitam Thank you very much.
@sincerodel please follow the instructions here to get the latest release.
It is not necessary to include the complete path with the library name.
Go to command line, navigate to your php folder and then write php -m command
Ohh Sorry @stevebauman My PHP is x86 and mi PC x64 … this is the reason for the x64 dll does’nt work … Thank you very much for your help. Now, my Windows XAMPP is configured, but I need the same in Ubuntu 16.04. Need enable the sqlserver driver for php 7.1 in Ubuntu, is my next adventure. Thanks !
I have downloaded https://github.com/Microsoft/msphpsql/releases/tag/v4.1.3-Windows release, and it’s work like a charm
Downloaded the RC drivers and works great for 7.1! Thanks for your guys hard work @meet-bhagdev 😃