#47087 [Opn->Asn]: Second parameter of mssql_fetch_array() is ignored

From: Date: Tue, 13 Jan 2009 13:29:07 +0000
Subject: #47087 [Opn->Asn]: Second parameter of mssql_fetch_array() is ignored
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-132827@lists.php.net to get a copy of this message
 ID:               47087
 Updated by:       kalle@php.net
 Reported By:      vrana@php.net
-Status:           Open
+Status:           Assigned
 Bug Type:         MSSQL related
 Operating System: Windows
 PHP Version:      5.3.0alpha3
-Assigned To:      
+Assigned To:      kalle
 New Comment:

I'll have a look at it


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

[2009-01-13 12:35:24] vrana@php.net

Description:
------------
It seems that the result_type parameter of mssql_fetch_array() is
always set to MSSQL_BOTH.

Reproduce code:
---------------
<?php
print_r(mssql_fetch_array($result, MSSQL_ASSOC));
?>


Expected result:
----------------
Array
(
    [id] => 1
)


Actual result:
--------------
Array
(
    [0] => 1
    [id] => 1
)



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


-- 
Edit this bug report at http://bugs.php.net/?id=47087&edit=1



Thread (3 messages)

« previous php.bugs (#132827) next »