X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FDB%2Foci8.php;h=9685c60e0c91c9d041f790449f626622636b1790;hb=10f2cde0b1d75fa023b00400162cb525e8719514;hp=d307948713bf84aebea9e9dd410ea3758fb2c5cd;hpb=7a9777df053a9007b5eaa71f5437584065b615a5;p=quix0rs-gnu-social.git diff --git a/extlib/DB/oci8.php b/extlib/DB/oci8.php index d307948713..9685c60e0c 100644 --- a/extlib/DB/oci8.php +++ b/extlib/DB/oci8.php @@ -6,7 +6,7 @@ * The PEAR DB driver for PHP's oci8 extension * for interacting with Oracle databases * - * PHP versions 4 and 5 + * PHP version 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: @@ -20,7 +20,7 @@ * @author Daniel Convissor * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: oci8.php,v 1.116 2007/11/28 02:22:39 aharvey Exp $ + * @version CVS: $Id$ * @link http://pear.php.net/package/DB */ @@ -47,7 +47,7 @@ require_once 'DB/common.php'; * @author Daniel Convissor * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version Release: 1.7.14RC1 + * @version Release: 1.8.2 * @link http://pear.php.net/package/DB */ class DB_oci8 extends DB_common @@ -452,6 +452,7 @@ class DB_oci8 extends DB_common if (isset($this->prepare_types[(int)$stmt])) { unset($this->prepare_types[(int)$stmt]); unset($this->manip_query[(int)$stmt]); + unset($this->_prepared_queries[(int)$stmt]); } else { return false; } @@ -670,7 +671,8 @@ class DB_oci8 extends DB_common $tmp = $this->oci8RaiseError($stmt); return $tmp; } - $this->last_query = preg_replace("/:bind$i/",$this->quoteSmart($data[$key]),$this->last_query,1); + $this->last_query = preg_replace("/:bind$i(?!\d)/", + $this->quoteSmart($data[$key]), $this->last_query, 1); $i++; } if ($this->autocommit) {