Re: [ANNOUNCEMENT] DB-1.2 (stable) Released. - minor error

From: Date: Wed, 24 Apr 2002 20:23:37 +0000
Subject: Re: [ANNOUNCEMENT] DB-1.2 (stable) Released. - minor error
References: 1  Groups: php.pear.dev php.pear.general 
Request: Send a blank email to pear-dev+get-5783@lists.php.net to get a copy of this message
As soon as I popped the new code in place, I got the following error: Undefined index: port In File: /var/www/php/pear/DB/pgsql.php On Line: 92 And here is the code: 90 if ($protocol == 'tcp') { 91 $connstr = 'host=' . $dsninfo['hostspec']; 92 if ($dsninfo['port']) { 93 $connstr .= ' port=' . $dsninfo['port']; 94 } 95 } This minor change seems to work: 92 if ( isset($dsninfo['port']) && $dsninfo['port'] ) { 93 $connstr .= ' port=' . $dsninfo['port']; 94 } So far, everything else is humming along nicely, Cheers, Craig On Tuesday 23 April 2002 07:40 pm, PEAR Announce wrote: > The new PEAR package DB-1.2 (stable) has been released at > http://pear.php.net/. > > Release notes > ------------- > First packaged release. > > Package Info > ------------- > DB is a database abstraction layer providing: > * an OO-style query API > * a DSN (data source name) format for specifying database servers > * prepare/execute (bind) emulation for databases that don't support it > natively * a result object for each query response > * portable error codes > * sequence emulation > * sequential and non sequential row fetching as well as bulk fetching > * ordered array, associative array and object formats supported for the > fetched rows * row limit support > * transactions support > * table information interface > * DocBook and PHPDoc API documentation > > DB layers itself on top of PHP's existing database extensions. The > currently supported extensions are: dbase, fbsql, interbase, informix, > msql, mssql, mysql, oci8, odbc, pgsql and sybase (a DB style interface > to LDAP servers is also avaible from a separate package). > > Related Links > ------------- > Package home: http://pear.php.net/package-info.php?pacid=46 > Changelog: > http://pear.php.net/package-changelog.php?pacid=46 > Download: http://pear.php.net/get/DB-1.2.tgz > > Authors > ------------- > Stig Bakken <ssb@fast.no> (lead) > Thomas V.V.Cox <cox@idecnet.com> (developer)

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