cvs: pear /MDB MDB.php

From: Date: Tue, 18 Feb 2003 13:58:44 +0000
Subject: cvs: pear /MDB MDB.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-8938@lists.php.net to get a copy of this message
lsmith Tue Feb 18 08:58:44 2003 EDT Modified files: /pear/MDB MDB.php Log: applied a number of fixes that were made to DB Index: pear/MDB/MDB.php diff -u pear/MDB/MDB.php:1.47 pear/MDB/MDB.php:1.48 --- pear/MDB/MDB.php:1.47 Sat Jan 18 16:32:32 2003 +++ pear/MDB/MDB.php Tue Feb 18 08:58:44 2003 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB.php,v 1.47 2003/01/18 21:32:32 lsmith Exp $ +// $Id: MDB.php,v 1.48 2003/02/18 13:58:44 lsmith Exp $ // require_once('PEAR.php'); @@ -210,7 +210,7 @@ * MDB_Manager This class handles the xml schema management. * * @package MDB - * @version $Id: MDB.php,v 1.47 2003/01/18 21:32:32 lsmith Exp $ + * @version $Id: MDB.php,v 1.48 2003/02/18 13:58:44 lsmith Exp $ * @category Database * @author Lukas Smith <smith@backendmedia.com> */ @@ -409,7 +409,7 @@ MDB_ERROR_NODBSELECTED => 'no database selected', MDB_ERROR_NOSUCHFIELD => 'no such field', MDB_ERROR_NOSUCHTABLE => 'no such table', - MDB_ERROR_NOT_CAPABLE => 'DB backend not capable', + MDB_ERROR_NOT_CAPABLE => 'MDB backend not capable', MDB_ERROR_NOT_FOUND => 'not found', MDB_ERROR_NOT_LOCKED => 'not locked', MDB_ERROR_SYNTAX => 'syntax error', @@ -424,7 +424,8 @@ MDB_ERROR_ACCESS_VIOLATION => 'insufficient permissions', MDB_ERROR_MANAGER => 'MDB_manager error', MDB_ERROR_MANAGER_PARSE => 'MDB_manager schema parse error', - MDB_ERROR_LOADMODULE => 'Error while including on demand module' + MDB_ERROR_LOADMODULE => 'Error while including on demand module', + MDB_ERROR_TRUNCATED => 'truncated' ); } @@ -518,10 +519,10 @@ $str = substr($dsn, 0, $at); $dsn = substr($dsn, $at + 1); if (($pos = strpos($str, ':')) !== FALSE) { - $parsed['username'] = urldecode(substr($str, 0, $pos)); - $parsed['password'] = urldecode(substr($str, $pos + 1)); + $parsed['username'] = rawurldecode(substr($str, 0, $pos)); + $parsed['password'] = rawurldecode(substr($str, $pos + 1)); } else { - $parsed['username'] = urldecode($str); + $parsed['username'] = rawurldecode($str); } } @@ -548,7 +549,7 @@ // process the different protocol options $parsed['protocol'] = (!empty($proto)) ? $proto : 'tcp'; - $proto_opts = urldecode($proto_opts); + $proto_opts = rawurldecode($proto_opts); if ($parsed['protocol'] == 'tcp') { if (strpos($proto_opts, ':') !== FALSE) { list($parsed['hostspec'], $parsed['port']) = @@ -578,7 +579,7 @@ foreach ($opts as $opt) { list($key, $value) = explode('=', $opt); if (!isset($parsed[$key])) { // don't allow params overwrite - $parsed[$key] = urldecode($value); + $parsed[$key] = rawurldecode($value); } } }

« previous php.pear.cvs (#8938) next »