go to bug id or search bugs for
the test script is ok, but when I remove the annotation at line 2, the findFirst will return a bad result,
Note: the findFinst is defined in phalcon framework.
$parameters = [[["id=470"]]];
// $conditions = &$parameters; // the problem code
$model = Model::findFirst($parameters);
echo $model->name , "<br>";
echo $this->di->get('profiler')->getLastProfile()->getSQLStatement(), "<br>";
Add a Patch
Add a Pull Request
Note: the findFirst method is defined in phalcon.
> Note: the findFirst method is defined in phalcon.
Then why do you report the issue here?
Embarrassing for the assuming, cause I don't know it is a bug from phalcon or something wrong with the reference. The parameters pass to findFirst is considered to be the same, but actually it is not, I wonder why this happened.
There is nothing inherently wrong with creating a reference, but apparently Phalcon is doing something with $parameters that is affected by  being a reference. So I suggest you not do that.
As for what or why, you'd have to ask the Phalcon people. If they say there is a PHP bug then we can always revisit this.
OK，thanks, I have ask.
Additionally, even I do `unset($conditions)` after reference it to  (line 2) the result is also being bad.