cvs: pear /MDB2 MDB2.php
| From: | Lukas Smith | Date: | Tue, 24 Oct 2006 11:43:59 +0000 |
| Subject: | cvs: pear /MDB2 MDB2.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42782@lists.php.net to get a copy of this message | ||
lsmith Tue Oct 24 11:43:59 2006 UTC
Modified files:
/pear/MDB2 MDB2.php
Log:
- bindValue() does not need values by reference
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2.php?r1=1.270&r2=1.271&diff_format=u
Index: pear/MDB2/MDB2.php
diff -u pear/MDB2/MDB2.php:1.270 pear/MDB2/MDB2.php:1.271
--- pear/MDB2/MDB2.php:1.270 Tue Oct 24 11:38:41 2006
+++ pear/MDB2/MDB2.php Tue Oct 24 11:43:59 2006
@@ -43,7 +43,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: MDB2.php,v 1.270 2006/10/24 11:38:41 lsmith Exp $
+// $Id: MDB2.php,v 1.271 2006/10/24 11:43:59 lsmith Exp $
//
/**
@@ -3873,7 +3873,7 @@
*
* @access public
*/
- function bindValue($parameter, &$value, $type = null)
+ function bindValue($parameter, $value, $type = null)
{
if (!is_numeric($parameter)) {
$parameter = preg_replace('/^:(.*)$/', '\\1', $parameter);
@@ -3905,7 +3905,7 @@
* @access public
* @see bindParam()
*/
- function bindValueArray(&$values, $types = null)
+ function bindValueArray($values, $types = null)
{
$types = is_array($types) ? array_values($types) : array_fill(0, count($values), null);
$parameters = array_keys($values);