php.net |  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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-02 08:08 UTC] cox@php.net
If you are using the last PEAR DB release (http://pear.php.net/package-info.php?pacid=46), use: 

ibase://user:pass@host/c:\foo\bar.db


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] ludoo@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net 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] ludoo@php.net
Unix database names for Interbase usually contain a slash anyway....eg /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