Edit report at https://bugs.php.net/bug.php?id=76691&edit=1
ID: 76691 Comment by: 641202944 at qq dot com Reported by: dying318 at gmail dot com Summary: bad result when using reference Status: Open Type: Bug Package: PECL Operating System: macOs PHP Version: 7.2Git-2018-08-01 (Git) Block user comment: N Private report: N New Comment: Note: the findFirst method is defined in phalcon. Previous Comments: ------------------------------------------------------------------------ [2018-08-01 08:57:25] dying318 at gmail dot com Description: ------------ 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. Test script: --------------- $parameters = [[["id=470"]]]; // $conditions = &$parameters[0]; // the problem code $model = Model::findFirst($parameters); echo $model->name , "<br>"; echo $this->di->get('profiler')->getLastProfile()->getSQLStatement(), "<br>"; ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=76691&edit=1 -- PECL development discussion Mailing List (http://pecl.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php