Big hex-values are not overflowed to float (bug #32211)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183281 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-03-31 15:57:59 +00:00
parent caceddf150
commit 2b1ac5dc6e

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.150 $ -->
<!-- $Revision: 1.151 $ -->
<chapter id="language.types">
<title>Types</title>
@ -408,9 +408,9 @@ $large_number = 2147483648;
var_dump($large_number);
// output: float(2147483648)
// this goes also for hexadecimal specified integers:
var_dump( 0x80000000 );
// output: float(2147483648)
// this doesn't go for hexadecimal specified integers:
var_dump( 0x100000000 );
// output: int(2147483647)
$million = 1000000;
$large_number = 50000 * $million;