Second parameter of mssql_fetch_array() is ignored
| Bug #47087 | Second parameter of mssql_fetch_array() is ignored | ||||
|---|---|---|---|---|---|
| Submitted: | 2009-01-13 12:35 UTC | Modified: | 2009-01-20 20:03 UTC | ||
| From: | vrana@php.net | Assigned: | kalle (profile) | ||
| Status: | Closed | Package: | MSSQL related | ||
| PHP Version: | 5.3.0alpha3 | OS: | Windows | ||
| Private report: | No | CVE-ID: | None | ||
[2009-01-13 12:35 UTC] 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
)
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2009-01-20 20:03 UTC] felipe@php.net