Bug #69704 [Nab]: maximum value of intval
| From: | ab@php.net | Date: | Mon, 25 May 2015 11:00:19 +0000 |
| Subject: | Bug #69704 [Nab]: maximum value of intval | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-192879@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=69704&edit=1
ID: 69704
Updated by: ab@php.net
Reported by: youbl at 163 dot com
Summary: maximum value of intval
Status: Not a bug
Type: Bug
Package: *General Issues
Operating System: Windows2008R2
PHP Version: 5.6.9
Block user comment: N
Private report: N
New Comment:
@youbl as addition, please test any latest master snapshot http://windows.php.net/downloads/snaps/master/
aka PHP7, x64 builds have full 64-bit support.
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2015-05-25 03:21:09] requinix@php.net
64-bit Windows does not mean you automatically get 64-bit applications.
Windows PHP x64 is experimental and incomplete. For now it's only 32-bit.
------------------------------------------------------------------------
[2015-05-25 03:18:11] youbl at 163 dot com
Description:
------------
http://php.net/manual/en/function.intval.php
said: The maximum signed integer value for 64 bit systems is 9223372036854775807.
but I test it on Win7x64 and Win2008R2x64 ent,
result is 2147483647
please tell me why??
My php version is thisï¼
http://windows.php.net/downloads/releases/php-5.6.9-nts-Win32-VC11-x64.zip
My windows version is:
Windows Server 2008R2 Enterprise 64bit
Version 6.1(7601 Service Pack1)
Test script:
---------------
<?php
var_dump(intval('30000000000'));
Expected result:
----------------
int 30000000000
Actual result:
--------------
int 2147483647
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=69704&edit=1