Tuesday, September 21, 2010

ibm_db2 PHP extension updated to 1.9.0

Version 1.9.0 of the ibm_db2 extension for PHP has been released. Changes include:
  • Fix for BIGINT fix for i5.
  • Fix for autocommit issue (CLI setting is now handled).
  • Fix for db2_pconnect connection reset issue.
  • Fix for connection rollback in db2_pconnect at the end of request.
On Windows, you should go to the DB2 Technology Explorer downloads and grab a build of the extension that matches your PHP 5.3 installation. Confusingly, PHP on Windows is available in four different official flavours:
  • Threadsafe PHP compiled with Microsoft Visual C++ 6
  • Non-thread-safe (nts) PHP compiled with Microsoft Visual C++ 6
  • Thread-safe PHP compiled with Microsoft Visual C++ 9
  • Non-thread-safe (nts) PHP compiled with Microsoft Visual C++ 9
Be sure to get a build that matches your PHP flavour.

On Linux, you should make sure you have pecl installed in your package manager and then run:

pecl install ibm_db2

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

Cheers,

Leons Petrazickis
DB2 Community Team

4 comments:

  1. Does anyone know why the ibm_db2 install fails with the most popular Linux distribution on the planet?
    Did this one get released with NO testing whatsoever?

    Ubuntu 10.04 badly broken, I shudder to think what will happen with the next release in a few weeks time.

    ReplyDelete
  2. wait, I meant PDO_IBM, the ibm_db2 works perfectly.

    ReplyDelete
  3. Kaylee, I'm sorry to hear about your difficulties. I will ping the developers about the issue.

    ReplyDelete
  4. What is the error you are getting while installing PDO_IBM?

    I don't know the steps that you are following, so links given below will be helpful:
    http://in2.php.net/manual/en/install.pecl.phpize.php
    http://in2.php.net/manual/en/ref.pdo-ibm.php

    Regards,
    Ambrish Bhargava

    ReplyDelete