diff --git a/lib/Doctrine/Adapter/Statement/Interface.php b/lib/Doctrine/Adapter/Statement/Interface.php index 3af9c69f3..ee692e6fd 100644 --- a/lib/Doctrine/Adapter/Statement/Interface.php +++ b/lib/Doctrine/Adapter/Statement/Interface.php @@ -85,7 +85,7 @@ interface Doctrine_Adapter_Statement_Interface * @param mixed $driverOptions * @return boolean Returns TRUE on success or FALSE on failure. */ - public function bindParam($column, $variable, $type = null, $length = null, $driverOptions = array()); + public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array()); /** * closeCursor * Closes the cursor, enabling the statement to be executed again. diff --git a/lib/Doctrine/Adapter/Statement/Mock.php b/lib/Doctrine/Adapter/Statement/Mock.php index 7e67d5f10..ea4c441c6 100644 --- a/lib/Doctrine/Adapter/Statement/Mock.php +++ b/lib/Doctrine/Adapter/Statement/Mock.php @@ -100,7 +100,7 @@ class Doctrine_Adapter_Statement_Mock implements Doctrine_Adapter_Statement_Inte * @param mixed $driverOptions * @return boolean Returns TRUE on success or FALSE on failure. */ - public function bindParam($column, $variable, $type = null, $length = null, $driverOptions = array()) + public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array()) { } diff --git a/lib/Doctrine/Connection/Statement.php b/lib/Doctrine/Connection/Statement.php index 425ca349f..d4bc4bc0c 100644 --- a/lib/Doctrine/Connection/Statement.php +++ b/lib/Doctrine/Connection/Statement.php @@ -144,7 +144,7 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf * @param mixed $driverOptions * @return boolean Returns TRUE on success or FALSE on failure. */ - public function bindParam($column, $variable, $type = null, $length = null, $driverOptions = array()) + public function bindParam($column, &$variable, $type = null, $length = null, $driverOptions = array()) { if ($type === null) { return $this->_stmt->bindParam($column, $variable); @@ -435,4 +435,4 @@ class Doctrine_Connection_Statement implements Doctrine_Adapter_Statement_Interf { return $this->_stmt->setFetchMode($mode, $arg1, $arg2); } -} \ No newline at end of file +}