php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #69704 maximum value of intval
Submitted: 2015-05-25 03:18 UTC Modified: 2015-05-25 11:00 UTC
From: youbl at 163 dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 5.6.9 OS: Windows2008R2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: youbl at 163 dot com
New email:
PHP Version: OS:

 

 [2015-05-25 03:18 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-05-25 03:21 UTC] requinix@php.net
-Status: Open +Status: Not a bug
 [2015-05-25 03:21 UTC] 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 11:00 UTC] ab@php.net
@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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 03:00:01 2026 UTC