#29867 [NEW]: mysqli_result->fetch_array() differs from Documentations

From: Date: Fri, 27 Aug 2004 13:35:41 +0000
Subject: #29867 [NEW]: mysqli_result->fetch_array() differs from Documentations
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65353@lists.php.net to get a copy of this message
From: faxe at neostrada dot pl Operating system: Windows 5.1 32bit PHP version: 5.0.1 PHP Bug Type: MySQL related Bug description: mysqli_result->fetch_array() differs from Documentations Description: ------------ mysqli_result->fetch_array() uses MYSQLI_ASSOC as default argument. Not MYSQLI_BOTH like Documentation claims. Reproduce code: --------------- <?php $foo = $_mysqli->query('SELECT 1 AS bar'); $arr = $foo->fetch_array(); print_r($arr); // $arr contains only 'bar' key ?> Expected result: ---------------- Array ( [bar] => 1 ) Actual result: -------------- Array ( [0] => 1 [bar] => 1 ) -- Edit bug report at http://bugs.php.net/?id=29867&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29867&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29867&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29867&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29867&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29867&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29867&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29867&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29867&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29867&r=support Expected behavior: http://bugs.php.net/fix.php?id=29867&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29867&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29867&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29867&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29867&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29867&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29867&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29867&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29867&r=float

« previous php.bugs (#65353) next »