Edit report at https://bugs.php.net/bug.php?id=64733&edit=1

 ID:                 64733
 Updated by:         cataphr...@php.net
 Reported by:        ludko2 at gmail dot com
 Summary:            handling large int does not work according to
                     documentation
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            *General Issues
 Operating System:   win7 64bit
 PHP Version:        5.4.14
 Block user comment: N
 Private report:     N

 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

The documentation is clear in that this is platform dependent behavior.


Previous Comments:
------------------------------------------------------------------------
[2013-04-29 09:04:00] ludko2 at gmail dot com

Description:
------------
handling large int does not work according to documentation:

(Tested on 5.4.6)

Example from documentation: http://php.net/manual/en/language.types.integer.php

$large_number = 9223372036854775807;
var_dump($large_number);                     // int(9223372036854775807)


If this is expected behavior, please update documentation to specify it more 
clearly.

Please note that converting all integer values to string with number_format 
function is quite time and code consuming..

Test script:
---------------
$large_number = 9223372036854775807;
var_dump($large_number);                     // int(9223372036854775807)

Expected result:
----------------
int(9223372036854775807)

Actual result:
--------------
float(9.2233720368548E+18)


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64733&edit=1

Reply via email to