Index: library/Zend/Db/Statement/Mysqli.php =================================================================== --- library/Zend/Db/Statement/Mysqli.php (revision 13376) +++ library/Zend/Db/Statement/Mysqli.php (working copy) @@ -198,7 +198,22 @@ } // send $params as input parameters to the statement if ($params) { - array_unshift($params, str_repeat('s', count($params))); + $types=''; + + //iterate the parameters to figure out their type + foreach ($params as $value) { + if (is_int($value)) { + $types .= 'i'; + } + else if (is_double($value)) { + $types .= 'd'; + } + else if (is_string($value)) { + $types .= 's'; + } + } + + array_unshift($params, $types); call_user_func_array( array($this->_stmt, 'bind_param'), $params