Bug #71899 [Opn->Fbk]: problem with result in php 7
| From: | laruence@php.net | Date: | Fri, 25 Mar 2016 15:06:57 +0000 |
| Subject: | Bug #71899 [Opn->Fbk]: problem with result in php 7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200095@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71899&edit=1
ID: 71899
Updated by: laruence@php.net
Reported by: Axmed9595 at mail dot ru
Summary: problem with result in php 7
-Status: Open
+Status: Feedback
Type: Bug
Package: PDO DBlib
PHP Version: 7.0Git-2016-03-25 (Git)
Block user comment: N
Private report: N
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2016-03-25 14:34:59] Axmed9595 at mail dot ru
Description:
------------
Values of the second array($a2) are mixed with first array($a1)
Test script:
---------------
$a1 = db_class::db()->query("select Gender from tb_users");
$a2 = db_class::db()->query("select cust_name from tb_Customers");
var_dump($a1->fetch(PDO::FETCH_ASSOC));
var_dump($a2->fetch(PDO::FETCH_ASSOC));
Expected result:
----------------
array(2) {
["Gender"]=>string(4) "Male"
}
array(2) {
["cust_name"]=>string(10) "custname 1"
}
Actual result:
--------------
array(2) {
["Gender"]=>string(10) "custname 1"
}
array(2) {
["cust_name"]=>string(10) "custname 2"
}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71899&edit=1