|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18687 DB/Interbase DSN Problem in Windows
Submitted: 2002-08-01 11:16 UTC Modified: 2002-08-06 09:11 UTC
From: rotherme at andrews dot edu Assigned:
Status: Closed Package: PEAR related
PHP Version: 4.2.2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rotherme at andrews dot edu
New email:
PHP Version: OS:


 [2002-08-01 11:16 UTC] rotherme at andrews dot edu
Windows uses back slashes, so line 82 breaks it:

                  ($dsninfo['hostspec'] . ':/' . $dsninfo['database']) :

That would be something like:

$dsninfo['hostspec'] . ':/c:\db\db.gdb'

Which doesn't work.  If line 82 is changed to

                  ($dsninfo['hostspec'] . ':' . $dsninfo['database']) :

(no slash), then it does work.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-02 08:08 UTC]
If you are using the last PEAR DB release (, use: 


Tomas V.V.Cox
 [2002-08-05 09:03 UTC] rotherme at andrews dot edu
I just verified the code at work and that is exactly what I have.  ibase://user:pass@host/c:\foo\bar.db is what I'm using, and it doesn't work with that "extra" forward slash.
 [2002-08-06 09:10 UTC]
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at In case this was a documentation 
problem, the fix will show up soon at
In case this was a website problem, the change will show
up on the site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.

changed line 82 as suggested, hopes Tomas agrees with the patch =)
 [2002-08-06 09:11 UTC]
Unix database names for Interbase usually contain a slash /opt/interbase/db/mydb.gdb
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Aug 02 20:01:24 2021 UTC