Package: php
Version: 5.1.2-1
Severity: important
Hello,
I'm really trying to use libphp-adodb with a postgres database that
I'm trying to reach through the local socket file. The logical way to
do that should be to say something like postgres:///dbname. That's at
least what I can determine when I read the libphp-adodb source.
Unfortunately, doing something like that results in this bug in the
browser:
Warning: parse_url(postgres:///webhost-db) [function.parse-url]:
Unable to parse url in /usr/share/php/adodb/adodb.inc.php on line 3659
Looking at that line, I saw a call to parse_url, so I tried it out:
: ; php -r 'print_r(parse_url("postgres://foo/bar"));'
Array
(
[scheme] => postgres
[host] => foo
[path] => /bar
)
: ; php -r 'print_r(parse_url("postgres://:/bar"));'
Warning: parse_url(postgres://:/bar): Unable to parse url in Command line
code on line 1
That says it all, hostless URLs, while being perfectly legal
(file:///path is very common, for example), aren't possible with
parse_url, and that makes it useless for the kind of thing I want to
do.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686
Locale: LANG=sv_SE.utf8, LC_CTYPE=sv_SE.utf8 (charmap=UTF-8)
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]