php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6044 odbc_connect() returns with very strange error message (pointer error?)
Submitted: 2000-08-09 05:41 UTC Modified: 2000-08-09 06:40 UTC
From: ltning at anduin dot net Assigned:
Status: Closed Package: ODBC related
PHP Version: 4.0.1pl2 OS: RedHat Linux 6.2
Private report: No CVE-ID: None
 [2000-08-09 05:41 UTC] ltning at anduin dot net
I have compiled PHP with DB2 support (--with-ibm-db2), and have installed the IBM DB2 Connect package to connect to the "real" DB2 server. When trying to call the odbc_connect() function, I get something like this:

Warning: SQL error: , SQL state ?R@D??????R@ in SQLConnect in /usr/local/apache/htdocs/index.phtml on line 2

or something similiar. 

This looks to me like some kind of pointer error?
It is very very hard to get any kind of help with PHP and DB2 anywhere, so I hope you can assist me with this ASAP. Already spent days and weeks on this, and time is running short...

Thanks in advance,
Eirik Overby
Freepoint Networks GmbH
Germany

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-09 05:46 UTC] ltning at anduin dot net
Sorry,  I forgot to mention that I'm using IBM DB2 UDB version 7.1. Hope that helps...

-Eirik
 [2000-08-09 06:40 UTC] kara@php.net
Did you set your DB2_INST (or something like that) env variable?
It needs to be set in your web server's environment.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jun 13 20:01:31 2024 UTC