Tuesday, February 15, 2011

ibm_db2 1.9.1 extension for PHP released

Version 1.9.1 of the ibm_db2 extension for PHP was recently released. Changes include:
  • Fix for db2_statistics (Failing with pconnect).
On Windows

Go to the DB2 Technology Explorer downloads section and grab a build of the extension that matches your PHP 5.3 installation. PHP on Windows is available in four official flavours:
  • Threadsafe PHP compiled with VC6
  • Non-thread-safe (nts) PHP compiled with VC6
  • Thread-safe PHP compiled with VC9
  • Non-thread-safe (nts) PHP compiled with VC9
Be sure to get a build of the extension that matches your PHP flavour. If you are running PHP with Apache, it's one of the two VC6 options.

On Linux

Make sure you have pecl installed in your package manager and then run:

pecl install ibm_db2

You will need gcc along with DB2 headers for the installation to complete. If you do not have a local copy of DB2, you can install the IBM Data Server Driver for ODBC and CLI instead.

No comments:

Post a Comment