1.1更新后出错

PHP Error

描述

array_merge() [<a href=‘function.array-merge’>function.array-merge</a>]: Argument #1 is not an array

源文件

E:\wamp\www\lib\yii2\framework\db\CDbCommand.php(337)

00325: * @param string method of PDOStatement to be called

00326: * @param mixed the first parameter to be passed to the method

00327: * @param array input parameters (name=>value) for the SQL execution. This is an alternative

00328: * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing

00329: * them in this way can improve the performance. Note that you pass parameters in this way,

00330: * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa.

00331: * binding methods and the input parameters this way can improve the performance.

00332: * This parameter has been available since version 1.0.10.

00333: * @return mixed the method execution result

00334: */

00335: private function queryInternal($method,$mode,$params=array())

00336: {

00337: if($this->_connection->enableParamLogging && ($pars=array_merge($this->_params,$params))!==array())

多谢,这是最近更改导致的。已经更正了。1.1要过几天才有merge

为什么要过几天呀,我正在用1.1, :-[

我已经merge了。不过从理论上来说,你使用最新的svn就必须面对类似的问题,毕竟svn的最新代码还处在开发阶段,任何问题都有可能发生,我们也无法保证。

这样才能及时的向你们反馈问题嘛,哈哈,谢谢强!