php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19268 IBM DB2 ACCESS FAIL
Submitted: 2002-09-06 11:25 UTC Modified: 2002-09-06 16:35 UTC
From: jean-paul dot pires at eu dot rhodia dot com Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.2.1 OS: w2k sp2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jean-paul dot pires at eu dot rhodia dot com
New email:
PHP Version: OS:

 

 [2002-09-06 11:25 UTC] jean-paul dot pires at eu dot rhodia dot com
Hello,

(Sorry for my bad english writting)

This script work well since php v4.04 :

//ODBC

line 45 :
$connexion_odbc = odbc_pconnect ("toto","toto","toto");

line 46 :
$selection_odbc = "select ciccli from CLIIDTP where cidann = 0 order by ciccli"; 
$resultat_odbc = odbc_exec($connexion_odbc, $selection_odbc); 

but now with php 4.2.1 :

Warning: SQL error: [IBM][Pilote ODBC de Client Access (32 bits)][SQL DB2/400]Echec de liaison. COMM RC=0x5, SQL state 08S01 in SQLConnect in maj_clients.php on line 45

So i try the odbc driver to attack db2 database with ms access and it work well.

(http server configuration : apache 1.3 on win2k pro sp2)

So, if anyone can help me ?
I'll be very happy.
Bye.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-06 16:20 UTC] kalowsky@php.net
A) Think you can translate that Error message to english for me?

B) Can you post a full simple sample script for me to look at?

C) Care to share the ODBC section of your PHP.ini file as well?
 [2002-09-06 16:35 UTC] kalowsky@php.net
Actually after talking with dams, the error you received says it all. 

Connection failure.  For some reason, your connection is not being made.  Check to ensure that your $connexion_odbc is valid before you use it first of all.  The actual error is in the odbc_pconnect() call judging from that warning.  It's not receiving a valid SQLConnect() call.  

This is most likely a local user configuration error, and not a PHP bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC