ID: 37459 Updated by: [EMAIL PROTECTED] Reported By: peterh at criten dot org -Status: Open +Status: Bogus Bug Type: PostgreSQL related Operating System: FreeBSD 5 PHP Version: 5.1.4 New Comment:
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Integers on 32 bit systems in PHP are limited to 2.14 billion. To avoid the limitation make the assignment operation use strings like this: $data['size'] = '33971734946'; Previous Comments: ------------------------------------------------------------------------ [2006-05-16 10:07:20] peterh at criten dot org Description: ------------ I noticed when I send pg_convert a large integer intended for a bigint column, it returns an incorrect (and negative) value. Reproduce code: --------------- $data['size'] = 33971734946; $result = pg_convert($database,$table,$data); print_r($result); Expected result: ---------------- Array ( [size] => 33971734946 ) Actual result: -------------- Array ( [size] => -388003422 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37459&edit=1