Bug #76691 [Fbk->Asn]: bad result when using reference
| From: | dying318 at gmail dot com | Date: | Tue, 07 Aug 2018 06:28:46 +0000 |
| Subject: | Bug #76691 [Fbk->Asn]: bad result when using reference | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216651@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
User updated by: dying318 at gmail dot com
Reported by: dying318 at gmail dot com
Summary: bad result when using reference
-Status: Feedback
+Status: Assigned
Type: Bug
Package: *General Issues
Operating System: macOs
PHP Version: 7.2Git-2018-08-01 (Git)
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2018-08-01 11:54:46] cmb@php.net
> Note: the findFirst method is defined in phalcon.
Then why do you report the issue here?
------------------------------------------------------------------------
[2018-08-01 08:58:35] 641202944 at qq dot com
Note: the findFirst method is defined in phalcon.
------------------------------------------------------------------------
[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