php_ibm_db2.dll extension for PHP7 on Windows?

2019-03-01 12:13发布

I'm having a hard time finding a php_ibm_db2.dll extension for PHP7 on Windows. The most recent version on https://pecl.php.net/package/ibm_db2 is from April 2016, so naturally it doesn't work. I've tried downloading a trial of Zend Server 9.1 and using the bundled php_ibm_db2.dll file in a non Zend Server WAMP stack, but no luck (both for 32 and 64 bit versions).

Has anyone successfully connected to a remote IBM DB2 instance from a non Zend Server WAMP stack using PHP7 and the db2_*() functions? If so, any advise/suggestions?

Note*: DB2 connect is installed, configured and connecting fine on the Windows machine I'm working on. I would imagine ODBC via PHP would work as well, but I need to use the db2_*() functions to connect.

1条回答
男人必须洒脱
2楼-- · 2019-03-01 13:14

The pecl repository isn't compiling the dlls anymore, the latest is 1.9.9 for php 5.6 :(

I compiled to myself the ibm_db2 2.0.5 for php 7.1.17, the dlls are in link below for future visitors :)

Remember: Install Ibm db2 ds drivers an add {ds_drivers_instalation_dir}/bin to Path env variable.

https://mega.nz/#F!qjBRCTCb!kRHBjHoVR9Svgx3o1nKSsg

查看更多
登录 后发表回答