PHP Warning: starting PHP: cannot load dynamic library '- the specified procedure was not found. in Unknown on line 0

I want to change php version to 7.1 and I have an error:

PHP Warning:  PHP Startup: Unable to load dynamic library 

    'C:\Program Files\PHP\v7.1\ext\php_sqlsrv_7_nts_x86.dll' - The specified procedure could not be found.
     in Unknown on line 0

Think first. This is not a duplicate question, because I checked a lot of similar questions. I use IIS, PHP 7.1and SQL server(that's why I need sqlsrv drivers). I checked php.inifile aready and change the extension-dir path to the full path, but nothing happens. (Logically, if the path is a problem, why does it work with other extensions?). It works with PHP 7.0.7 (all allowed extensions are exactly the same)

Update: still does not work, but I tried to insert the path from the error message into the file explorer and the file is already there.

+4
source share
3 answers

It turns out that PHP 7.0 and PHP 7.1 are incompatible, and the mssql PDO drivers are for 7.0.

Github problem here

Also make sure you include the correct version of 64/86 and ts / nts.

+5
source

Like Toby Allen, the accepted answer above 7.0 and 7.1 are incompatible,

However, Microsoft has released pre-release drivers for 7.1. It worked for me, hope it helps anyone who is looking.

Drivers can be found here under download.

+4
source

. .

.

. , , , php hello world, . , , .

die() , . , , sqlsrv_connect , (-) .

, , , , , , .

+1

Source: https://habr.com/ru/post/1662620/


All Articles