Bug #71899 [Fbk->NoF]: problem with result in php 7
| From: | php-bugs at lists dot php dot net | Date: | Sun, 03 Apr 2016 04:22:26 +0000 |
| Subject: | Bug #71899 [Fbk->NoF]: problem with result in php 7 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-200313@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: php-bugs@lists.php.net
Reported by: Axmed9595 at mail dot ru
Summary: problem with result in php 7
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: PDO DBlib
PHP Version: 7.0Git-2016-03-25 (Git)
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2016-03-25 15:06:54] laruence@php.net
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.
------------------------------------------------------------------------
[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