From: milan dot babuskov at gmail dot com Operating system: Slackware Linux 12.0 PHP version: 5.2.4RC1 PHP Bug Type: InterBase related Bug description: Invalid data retrieved from numeric columns
Description: ------------ PHP does not extract the values in NUMERIC(18,7) and NUMERIC(18,8) columns correctly. Reproduce code: --------------- create table test ( d1 numeric(18,7), d2 numeric(18,8)); insert into test (d1,d2) values (6543210.1234567, 87654321.01234567); commit; <? ibase_connect('localhost:mydb','sysdba', 'aa'); $res = ibase_query('select d5, d6 from test'); $row = ibase_fetch_row($res); echo "D5 = ".$row[0].",\n"; echo "D6 = ".$row[1]."\n"; ?> Expected result: ---------------- D5 = 6543210.1234567, D6 = 87654321.01234567 Actual result: -------------- D5 = 654321.1234567, D6 = 8765432.101234567 -- Edit bug report at http://bugs.php.net/?id=42284&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42284&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42284&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42284&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42284&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42284&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42284&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42284&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42284&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42284&r=support Expected behavior: http://bugs.php.net/fix.php?id=42284&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42284&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42284&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42284&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42284&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42284&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42284&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42284&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42284&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42284&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42284&r=mysqlcfg