|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-25 15:06 UTC] laruence@php.net
-Status: Open
+Status: Feedback
[2016-03-25 15:06 UTC] laruence@php.net
[2016-04-03 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 06:00:01 2025 UTC |
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" }