PHP >= 4.2.0 and IBM DB2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

we are running php based applications on Gentoo Linux with apache and IBM
DB2 
(running on another server). Under apache 1.3.28 and php 4.1.2 everything
works fine,
but when we switch to php 4.2.0 (or higher, I have tried 4.2.3 and 4.3.3,
too) 
nothing works. I wrote a very simple test script like this:
$conn = odbc_connect($dsn,$user,$pw);
$schema = odbc_exec($conn,"SET CURRENT SCHEMA = MAIN");
$result = odbc_exec($conn,"SELECT * FROM CLIENTS");
odbc_result_all($result);

with php 4.1.2 we get the right output, under php >= 4.2.0 the result is "No
Rows found".
Nothing has changed, same database, same script, same computer. 

unixODBC is installed (latest gentoo Version: 2.0.6) and php is compiled
with
./configure --without-mysql --with-ibm-db2=/usr/IBMdb2/V7.1/
--with-apache=[apache-root-Dir]

It does not help to build php as dynamic module (with apxs) or to include
"--with-unixODBC".
We have to use DB2 Client V7.1, because we run a DB2 7 Server and problems
occured with 
the Client V8.

Can anyone imagine why the php upgrade won't work ? I have searched on
google a lot, but
I could not found our problem.

Thanks

Bastian

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux