ID:               29867
 Updated by:       [EMAIL PROTECTED]
 Reported By:      faxe at neostrada dot pl
-Status:           Open
+Status:           Bogus
 Bug Type:         MySQL related
 Operating System: Windows 5.1 32bit
 PHP Version:      5.0.1
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This is already fixed in CVS. See bug #29335 


Previous Comments:
------------------------------------------------------------------------

[2004-08-27 15:48:08] faxe at neostrada dot pl

Actual & Exptected fields switched their values in this Bugreport

------------------------------------------------------------------------

[2004-08-27 15:35:41] faxe at neostrada dot pl

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 this bug report at http://bugs.php.net/?id=29867&edit=1

Reply via email to