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