Bug #76691 [Com]: bad result when using reference
| From: | 641202944 at qq dot com | Date: | Wed, 01 Aug 2018 08:58:35 +0000 |
| Subject: | Bug #76691 [Com]: bad result when using reference | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-15444@lists.php.net to get a copy of this message | ||
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