Bug #71899 [NEW]: problem with result in php 7

From: Date: Fri, 25 Mar 2016 14:35:03 +0000
Subject: Bug #71899 [NEW]: problem with result in php 7
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-200093@lists.php.net to get a copy of this message
From: Axmed9595 at mail dot ru Operating system: PHP version: 7.0Git-2016-03-25 (Git) Package: PDO DBlib Bug Type: Bug Bug description:problem with result in php 7 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 bug report at https://bugs.php.net/bug.php?id=71899&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71899&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71899&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71899&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=71899&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=71899&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=71899&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=71899&r=needscript Try newer version: https://bugs.php.net/fix.php?id=71899&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=71899&r=support Expected behavior: https://bugs.php.net/fix.php?id=71899&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=71899&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=71899&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=71899&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71899&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=71899&r=dst IIS Stability: https://bugs.php.net/fix.php?id=71899&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=71899&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=71899&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=71899&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=71899&r=mysqlcfg

« previous php.bugs (#200093) next »