Bug #76691 [NEW]: bad result when using reference

From: Date: Wed, 01 Aug 2018 08:57:25 +0000
Subject: Bug #76691 [NEW]: bad result when using reference
Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-15443@lists.php.net to get a copy of this message
From: dying318 at gmail dot com Operating system: macOs PHP version: 7.2Git-2018-08-01 (Git) Package: PECL Bug Type: Bug Bug description:bad result when using reference 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 bug report at https://bugs.php.net/bug.php?id=76691&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76691&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76691&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76691&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=76691&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=76691&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=76691&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=76691&r=needscript Try newer version: https://bugs.php.net/fix.php?id=76691&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=76691&r=support Expected behavior: https://bugs.php.net/fix.php?id=76691&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=76691&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=76691&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=76691&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76691&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=76691&r=dst IIS Stability: https://bugs.php.net/fix.php?id=76691&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=76691&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=76691&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=76691&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=76691&r=mysqlcfg

« previous php.pecl.dev (#15443) next »