#21595 [NEW]: Overflow in Numeric types
| From: | alex at aftinfo dot hu | Date: | Sun, 12 Jan 2003 12:45:27 +0000 |
| Subject: | #21595 [NEW]: Overflow in Numeric types | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-29817@lists.php.net to get a copy of this message | ||
From: alex@aftinfo.hu
Operating system: Red Hat 7.2
PHP version: 4.3.0
PHP Bug Type: Variables related
Bug description: Overflow in Numeric types
Hello,
I've seen a bugreport (Bug #21340 numerics can overflow php
numeric datatypes ) and I have experienced it too with
postgreSQL.
Database IDs (varchar(24)) are interpreted as numbers, and
lose information. f.e.:
200201010000000000000000 is equal to 200201010000000000000001
(!!!!) The patches I've found were bad, they didn't help.
Values from a field larger than PHP's numerc types should
be reported as srtings, not as numerics!
Bye,
Alex
--
Edit bug report at http://bugs.php.net/?id=21595&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21595&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21595&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21595&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21595&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21595&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21595&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21595&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21595&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21595&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21595&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21595&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21595&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21595&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21595&r=gnused