php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8631 Unreadable error message when unable to connect to IBM DB2
Submitted: 2001-01-10 07:36 UTC Modified: 2001-04-22 23:00 UTC
From: massimo dot ferrario at inforeti dot it Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.0.4 OS: Linux (RH6.2)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
23 - 18 = ?
Subscribe to this entry?

 
 [2001-01-10 07:36 UTC] massimo dot ferrario at inforeti dot it
I am trying to work with RH6.2 + Apache1.3.14 + PHP 4.0.4 on a machine where someone else (mis)installed IBM DB2 version 7.1 for linux. I compiled PHP as a DSO using the --with-ibm-db2 switch.

Apparently the did not correctly setup the environment to make DB2 setup available for the Apache process: when i try to connect to DB2 using odbc_connect() I get "binary trash" inside the warning i get from PHP. I think that "trash" appears where the error message from DB2 should appear instead.

If i restart the apache process after setting up the required DB2 environment variables for user root (i.e. now I can connect to DB2 as root) everithing works ok: i.e., if I connect to a non-existant DB I get 'readable' error message instead of trash.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-22 23:00 UTC] kalowsky@php.net
if you've poorly installed your DB, theres very little PHP 
can do.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 09:01:29 2024 UTC