PHP >= 4.2.0 and IBM DB2
[email protected] Thu, 2 Oct 2003 09:01:33 +0200
| Newsgroups | gmane.linux.suse.db2 |
|---|---|
| Message-ID | <87514FF5916BD511A0E60008C709457C06BF5D@TMJPTYO0002> |
------_=_NextPart_001_01C388B2.FC3A6EF0 Content-Type: text/plain Hello, we are running php based applications on 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 (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 ------_=_NextPart_001_01C388B2.FC3A6EF0--