From: aheckmann at m-s dot de Operating system: SuseLinux PHP version: 4.3.0 PHP Bug Type: Sybase-ct (ctlib) related Bug description: sybase_fetch_array / sybase_fetch_object returns wrong datatype
if you have in your database in field double 1.1, 2.2, 3.3, 4.4 while($robj=sybase_fetch_object($rs)) { echo $robj->double ."\n"; } output is: 1.1 2 3 4 Only the first value is correct ... The error seems to be in ext/sybase_ct/php_sybase_ct.c in line 1062: switch (result->numerics[j]) { case 1: convert_to_long(&result->data[i][j]); break; case 2: convert_to_double(&result->data[i][j]); result->numerics[j]= 1; break; } why "result->numerics[j]= 1"; //Debugging stuff? -- Edit bug report at http://bugs.php.net/?id=22271&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22271&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22271&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22271&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22271&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22271&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22271&r=support Expected behavior: http://bugs.php.net/fix.php?id=22271&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22271&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22271&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22271&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22271&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22271&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22271&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22271&r=gnused