cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Cannot load PHP DLL

Former Member
0 Likes
2,990

Hello, I'm running PHP 7.1.7 64-bit on 64-bit Windows 2016 Server. I have followed your installation instructions for integrating SQL Anywhere, in short:

  • downloaded php-7.1.0_sqlanywhere.dll 64-bit version
  • moved that file into C:\\Program Files\\PHP\\v7.1\\ext
  • set my extension_dir correctly in PHP.ini
  • added extension=php-7.1.0_sqlanywhere.dll
  • installed the Sybase SQL Anywhere Client 17
  • verified that %path% is referring to C:\\Program Files\\SQL Anywhere 17\\Bin64
  • verified that %path% is referring to C:\\Program Files\\SQL Anywhere 17\\Bin32

Which still results in PHP Warning: PHP Startup: Unable to load dynamic library 'C:\\Program Files\\PHP\\v7.1\\ext\\php-7.1.0_sqlanywhere.dll' - Kan opgegeven module niet vinden. in Unknown on line 0

I've read that the .DLL has to be the exact version according to PHP, but I'm using the 7.1.0 DLL on a 7.1.7 PHP. Might that be the reason? Is the 7.1.7 DLL available? Or what could cause the problem?

Thanks for your help.

View Entire Topic
Former Member

Ok, I seem to have found the solution. I had to use the non thread safe version. php-7.1.0_sqlanywhere_nts.dll. I found out that when running PHP as FastCGI on Windows, you need to use NTS.

VolkerBarth
Contributor
0 Likes

Thanks for sharing your solution. So do you run FastCGI with IIS?

Former Member
0 Likes

Hello, yes, PHP 7.1.7 as FastCGI on IIS (win2016)