title: PHP 7 C++ extension. The specified module could not be found
body: <p>I wrote an extension with C++ for php on windows. I build multiple different versions:  </p>
  
  <ul>
  <li>php 5: with a MSVC11 compiler, linked with php5ts.lib, thread safe and it works fine</li>
  <li>php 7: with a MSVC14 compiler, linked with php7ts.lib, thread safe, but it didn't work</li>
  </ul>
  
  <p>The php 7 version gives me</p>
  
  <pre><code>Warning: PHP Startup: Unable to load dynamic library 'C:/openserver/ospanel/modules/php/PHP-7.0/ext/module_php_7.0.21_TS.dll' - The specified module could not be found.
   in Unknown on line 0
  PHP 7.0.21 (cli) (built: Jul  5 2017 13:31:19) ( ZTS )
  Copyright (c) 1997-2017 The PHP Group
  Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
  </code></pre>
  
  <p>I tried to change extension folder, rename file, nothing helps. Library was built without any error. I double checked that it exists.</p>
  
  <p>P.s: I know there is a difference between php5 and php7 api, i have #ifdef for this, so it's not a problem. Also we have successful build of this module with php7 on linux.</p>