Bug #3659 [NEW]: Bugs pear-DB with mssql on FreeBSD-ports

From: Date: Tue, 01 Mar 2005 10:53:42 +0000
Subject: Bug #3659 [NEW]: Bugs pear-DB with mssql on FreeBSD-ports
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-3927@lists.php.net to get a copy of this message
From: lecha at mambursoft dot org dot ua Operating system: FreeBSD 5.3 PHP version: 5.0.3 Package: Bug System Bug Type: Bug Bug description: Bugs pear-DB with mssql on FreeBSD-ports Description: ------------ 1. On connect. < $dbhost .= $dsninfo['port'] ? ':' . $dsninfo['port'] : ''; --- > $dbhost .= $dsninfo['port'] ? ',' . $dsninfo['port'] : ''; Replace please "," to ":" 2. On Error. Alert error without error! Reproduce code: --------------- 1. On connect. < $dbhost .= $dsninfo['port'] ? ':' . $dsninfo['port'] : ''; --- > $dbhost .= $dsninfo['port'] ? ',' . $dsninfo['port'] : > ''; Replace please "," to ":" 2. On Error. Alert error without error! Fix /usr/local/share/pear/DB/mssql.php: function simpleQuery($query) { $ismanip = DB::isManip($query); $this->last_query = $query; if (!@mssql_select_db($this->_db, $this->connection)) { return $this->mssqlRaiseError(DB_ERROR_NODBSELECTED); } $query = $this->modifyQuery($query); if (!$this->autocommit && $ismanip) { if ($this->transaction_opcount == 0) { $result = @mssql_query('BEGIN TRAN', $this->connection); if (!$result) { return $this->mssqlRaiseError(); } } $this->transaction_opcount++; } $result = @mssql_query($query, $this->connection); // My edition !!!!!!!!!!!!!!!! if ($this->errorNative()){ // if (!$result) { return $this->mssqlRaiseError(); // } } // Determine which queries that should return data, and which // should return an error code only. return $ismanip ? DB_OK : $result; } -- Edit bug report at http://pear.php.net/bugs/bug.php?id=3659&edit=1 --

« previous php.pear.webmaster (#3927) next »