Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in August and this forum will be retired.

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.

asked 02 Feb '18, 05:43

cplatteeuw's gravatar image

accept rate: 100%

converted to question 02 Feb '18, 08:02

Graeme%20Perrow's gravatar image

Graeme Perrow

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.

permanent link

answered 05 Feb '18, 02:03

cplatteeuw's gravatar image

accept rate: 100%

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

(05 Feb '18, 07:08) Volker Barth
Replies hidden

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

(05 Feb '18, 07:10) cplatteeuw
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 02 Feb '18, 05:43

question was seen: 2,130 times

last updated: 05 Feb '18, 07:10