gkralik / php7-sapnwrfc

SAP NW RFC SDK extension for PHP 7.3+ & PHP 8
https://gkralik.github.io/php7-sapnwrfc
MIT License
88 stars 35 forks source link

php_sapnwrfc-2.0.0-beta2-8.1.0-vs16-ts-x64.dll Unable to load dynamic library #138

Closed gokul0401 closed 4 months ago

gokul0401 commented 1 year ago

At present we are using the lib in php 7.4 (widows 2012) and we are planing for php 8 upgrade. As part of POC, I tried using the prebuilt windows package on both PHP 8.1.13 and PHP 8.1.0 , but the extension is not loading.

I copied the SAP library that is working in php 7.4 and have setup the path in the new server.

gokul0401 commented 1 year ago

the built is working in windows 2012 server, but not in 2019 server. are you aware of any OS restriction on SAP lib??

gkralik commented 1 year ago

Correct Visual C++ libs?

gkralik commented 1 year ago

Try to find out with procmon or similar what library PHP or the extension does not find.

gokul0401 commented 1 year ago

Warning: PHP Startup: Unable to load dynamic library 'php_sapnwrfc.dll' (tried: c:\php\ext\php_sapnwrfc.dll , rest of the extensions are loading ok. I think I did something wrong while installing the SAP NW RFC library. May I check with you how to extract the lib from the nwrfc750 zip file using sapcar utility. I tried few commands but I got some error like header not found.

gkralik commented 1 year ago

As I said, you have to find out which library cannot be found using procmon or similar.

gkralik commented 1 year ago

May be related to #137.