|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-08-27 15:48 UTC] faxe at neostrada dot pl
[2004-08-27 16:01 UTC] georg@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 04:00:01 2025 UTC |
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 )