From: joseph dot morain at live dot ca Operating system: Linux PHP version: Irrelevant Package: MySQLi related Bug Type: Bug Bug description:Incorrect Array Size when fetching Array
Description: ------------ Hi I'm using PHP 5.4.4 (Didn't see option for this). I have a trivial table called staff with 3 rows and 1 record staff_id : 555 email : baconator_k...@baconation.com password : 1_b@c0n@73_8Ab1Es whenever I try to fetch array however it multiplies the data by 2! I've posted a short little program which illustrates my problem. There is a similar problem here : https://bugs.php.net/bug.php?id=60333 but it was dealing with a slightly different function so I didn't append that bug report. Test script: --------------- include('_commons.php'); $con = dbopen(); $results = mysqli_query($con,'SELECT * FROM Staff;'); while($row = mysqli_fetch_array($results)){ foreach($row as $t){ echo $t.'<br/>'; } } dbclose($con); Expected result: ---------------- 555 baconator_k...@baconation.com 1_b@c0n@73_8Ab1Es Actual result: -------------- 555 555 baconator_k...@baconation.com baconator_k...@baconation.com 1_b@c0n@73_8Ab1Es 1_b@c0n@73_8Ab1Es -- Edit bug report at https://bugs.php.net/bug.php?id=62879&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62879&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62879&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62879&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62879&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62879&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62879&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62879&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62879&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62879&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62879&r=support Expected behavior: https://bugs.php.net/fix.php?id=62879&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62879&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62879&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62879&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62879&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62879&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62879&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62879&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62879&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62879&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62879&r=mysqlcfg