|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-05-22 18:51 UTC] theodoreb at goshen dot edu
[2015-05-27 14:16 UTC] asears at conestogawood dot com
[2015-05-27 14:17 UTC] asears at conestogawood dot com
-Status: Open
+Status: Closed
[2015-05-27 14:17 UTC] asears at conestogawood dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon May 25 19:00:01 2026 UTC |
Description: ------------ Using PHP-5.5.24, unixODBC 2.3.2, IBM iSeriesAccess 1.1.0.2 odbc_fetch_array returns the field values as the array keys instead of the column names as expected. Test script: --------------- $odbc = odbc_connect('AS400', '', ''); $result = odbc_exec($odbc, "SELECT * FROM SYSIBM.SYSCHARSETS"); var_dump(odbc_fetch_array($result)); Expected result: ---------------- (result using PHP-5.5.23) array(4) { ["CHARACTER_SET_SCHEMA"]=> string(18) "INFORMATION_SCHEMA" ["CHARACTER_SET_NAME"]=> string(8) "SQL_TEXT" ["DEFAULT_COLLATE_SCHEMA"]=> string(18) "INFORMATION_SCHEMA" ["DEFAULT_COLLATE_NAME"]=> string(8) "SQL_TEXT" } Actual result: -------------- (result using PHP-5.5.24) array(2) { ["INFORMATION_SCHEMA"]=> string(18) "INFORMATION_SCHEMA" ["SQL_TEXT"]=> string(8) "SQL_TEXT" }