Re: Problems with DB in 4.2.0

From: Date: Tue, 09 Apr 2002 16:30:25 +0000
Subject: Re: Problems with DB in 4.2.0
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5280@lists.php.net to get a copy of this message
>> I'm using "pgsql://ek:@/ekpops" as pear connect string. This used to work >> until I upgraded to PHP 4.2.0 where this is translated to "host= >> dbname=ekpops user=ek" pgsql connect string. Postgres refuses empy host in >> the connect string. >> >> When looking at the code, I can see that the problem is introduced when >> support for protocol was added to pear connect strings. Hope this doesn't >> make it into PHP 4.2.0 release. > > >Well, is not a really a fail, but it's true we can make a workarround to >it. > >I'm going to commit a patch (fallback to localhost if no hostspec is >given). Previous version made a pg connect string "dbname=ekpops user=ek password=". If no host is specified, it should not be part of the connect string at all. It would be backward compatible and more correct IMHO. Edin

« previous php.pear.dev (#5280) next »