From:             jojoao at hotmail dot com
Operating system: Windows 2000
PHP version:      4.3.3RC3
PHP Bug Type:     ODBC related
Bug description:  odbc_fetch_array doesn't return numeric field

Description:
------------
It seems like odbc_fetch_array doesn't return numeric fields propely like
others *_fetch_array does. This may cause alot of trouble.

Reproduce code:
---------------
$re = odbc_exec($id_mssql,"select 99 as first,100,101");
$row=odbc_fetch_array($re);
var_dump($row);

Expected result:
----------------
array(6) {
  [0]=>
  string(2) "99"
  ["first"]=>
  string(2) "99"
  [1]=>
  string(3) "100"
  [100]=>
  string(3) "100"
  [2]=>
  string(3) "101"
  [101]=>
  string(3) "101"
}

Actual result:
--------------
array(2) {
  ["first"]=>
  string(2) "99"
  [""]=>
  string(3) "101"
}

-- 
Edit bug report at http://bugs.php.net/?id=25081&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25081&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25081&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=25081&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=25081&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=25081&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=25081&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=25081&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=25081&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=25081&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=25081&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=25081&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25081&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=25081&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=25081&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=25081&r=gnused

Reply via email to