ID: 41030
Updated by: [EMAIL PROTECTED]
Reported By: sedat dot capar at isbank dot net dot tr
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: windows
PHP Version: 5.2.1
New Comment:
intval() is bound to the limits of your system's integer.
Previous Comments:
------------------------------------------------------------------------
[2007-04-09 17:21:37] sedat dot capar at isbank dot net dot tr
I noticed that I made a mistake in first sentence of description
intval("2147483648") returns 214783648
should be
intval("2147483648") returns 214783647
------------------------------------------------------------------------
[2007-04-09 17:19:37] sedat dot capar at isbank dot net dot tr
Description:
------------
intval("2147483648") returns 214783648
this is upper limit for integers however we may use bigint in mysql
therefore converting numbers bigger than 214783647 is needed.
Reproduce code:
---------------
$sayi=intval("2147483648");
print number_format($sayi,",");
Expected result:
----------------
2,147,483,648
Actual result:
--------------
2,147,483,647
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41030&edit=1