#37459 [NEW]: pg_convert fails with bigint
From: peterh at criten dot org
Operating system: FreeBSD 5
PHP version: 5.1.4
PHP Bug Type: PostgreSQL related
Bug description: pg_convert fails with bigint
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 bug report at http://bugs.php.net/?id=37459&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37459&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=37459&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37459&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37459&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=37459&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37459&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37459&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37459&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37459&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37459&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=37459&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=37459&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37459&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37459&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37459&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37459&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37459&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37459&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37459&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37459&r=mysqlcfg
Thread (2 messages)
- peterh at criten dot org