|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #71899 problem with result in php 7
Submitted: 2016-03-25 14:34 UTC Modified: 2016-04-03 04:22 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: Axmed9595 at mail dot ru Assigned:
Status: No Feedback Package: PDO DBlib
PHP Version: 7.0Git-2016-03-25 (Git) OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Axmed9595 at mail dot ru
New email:
PHP Version: OS:


 [2016-03-25 14:34 UTC] Axmed9595 at mail dot ru
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");

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"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2016-03-25 15:06 UTC]
-Status: Open +Status: Feedback
 [2016-03-25 15:06 UTC]
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-04-03 04:22 UTC] php-bugs at lists dot php dot net
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.
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Jan 23 20:01:24 2020 UTC