Hi all,
we have using Zend Server 5.5CE on Ubuntu LTS.
I need to work with a DB2 and db2_connect method. My problem is to configure the right isolation level.
It's very important for us to protect data which is "in transaction" from other processes. If I follow the php manual and set:
$options = array('i5_commit' => DB2_I5_TXN_READ_COMMITTED );
$db2string="DRIVER={IBM DB2 ODBC DRIVER};DATABASE=........";
$conn=db2_connect($db2string, "", "", $options);
I get already two problems:
1st:
Notice: Use of undefined constant DB2_I5_TXN_READ_COMMITTED - assumed 'DB2_I5_TXN_READ_COMMITTED' in /var/www/db2xx.php on line 24
2nd:
Warning: db2_connect() [function.db2-connect]: Incorrect option setting passed in in /var/www/db2c.php on line 28
He does not care about this setting, although php manual describes that this is the right way to configure it.
Also I wonder that I need to use magic function "shutdown" to do a rollback in case of fatal-errors. Otherwise table is locked and data readable for other processes. But this may have the same reason (wrong isolation level).
Please if anyone can help, let me know.
Kind Regards,
Christian Funke

