RE: [PEAR-DEV] Re: pear-db dsn and mysql sockets (patch)
| From: | Tomas V.V.Cox | Date: | Sat, 12 Jan 2002 17:47:27 +0000 |
| Subject: | RE: [PEAR-DEV] Re: pear-db dsn and mysql sockets (patch) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-3924@lists.php.net to get a copy of this message | ||
>
> On Sat, 12 Jan 2002, Tomas V.V.Cox wrote:
>
> > That will result in:
> > phptype://username:password@tcp(localhost:port)/database
> > phptype://username:password@localhost:port/database <- Default "tcp"
> > phptype://username:password@unix(/path/to/socket)/database <- mysql
> > phptype://username:password@unix/database <- psql
Oops, this last one is conflictive if someone has an entry "unix" in his
hosts file. Perhaps the parethesis should be required when a protocol
different than "tcp" is given:
phptype://username:password@unix/database <- pgsql tcp to host "unix"
phptype://username:password@unix()/database <- psql sockets
> +1 to this proposal :)
>
> if i have some time in the next days, i will implement it (if noone does
> it sooner), shouldn't be a big task.
Great. FYI there is a test for correct DSNs parsing you may want to launch
when change the parseDSN func. I you prefer I could take care on ensure
tests and add new tests for that format.
> > PS.- I haven't read any question about mysql and sockets
> before, where was
> > it?
>
>
> http://marc.theaimsgroup.com/?l=pear-general&m=100972493709281&w=2
>
Ah, thanks I have a big delay with pear-general, I should fix that :-)
Tomas V.V.Cox