#21595 [Opn->Fbk]: Overflow in Numeric types
| From: | iliaa@php.net | Date: | Mon, 19 May 2003 23:55:38 +0000 |
| Subject: | #21595 [Opn->Fbk]: Overflow in Numeric types | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-39997@lists.php.net to get a copy of this message | ||
ID: 21595
Updated by: iliaa@php.net
Reported By: alex at aftinfo dot hu
-Status: Open
+Status: Feedback
Bug Type: PostgreSQL related
Operating System: ANY
PHP Version: 4.3.0
Assigned To: helly
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-01-12 06:45:27] alex at aftinfo dot hu
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 this bug report at http://bugs.php.net/?id=21595&edit=1