title: PHP Warning PHP Startup Unable to load dynamic library php_pdo_sqlsrv_7_ts_x64.dll
body: <ul>
  <li>OS:     Windows 8.1 </li>
  <li>Arch:   x64</li>
  <li>php:    PHP 7.1.6</li>
  <li>mssql: Mssql Server 2014 express</li>
  <li>driver: SQLSRV 4.0</li>
  <li>IDE: PhpStorm</li>
  </ul>
  
  <p>I'm trying to get mssql drivers to work. 
  I downloaded the pdo driver from microsoft, put the file <code>php_pdo_sqlsrv_7_nts_x64.dll</code> into <code>C:\Program Files\PHP\ext</code> and edited <code>php.ini</code> to add <code>extension=php_pdo_sqlsrv_7_nts_x64.dll</code> to it.</p>
  
  <p>This is the result:</p>
  
  <pre><code>$ php -v
  PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_pdo_sqlsrv_7_nts_x64.dll' - The specified procedure could not be found.
   in Unknown on line 0
  
  Warning: PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_sqlsrv_7_nts_x64.dll.dll' - The specified procedure could not be found.
   in Unknown on line 0
  PHP 7.1.6 (cli) (built: Jun  8 2017 01:53:41) ( ZTS MSVC14 (Visual C++ 2015) x64 )
  Copyright (c) 1997-2017 The PHP Group
  Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
  </code></pre>
  
  <p>Probable duplicate of this:
  <a href="https://stackoverflow.com/questions/19993762/php-warning-php-startup-unable-to-load-dynamic-library-php-pdo-mssql-dll">PHP Warning: PHP Startup: Unable to load dynamic library php_pdo_mssql.dll</a></p>
  
  <p>But that one's never answered and four years old.</p>