Bug #69704 [NEW]: maximum value of intval
| From: | youbl at 163 dot com | Date: | Mon, 25 May 2015 03:18:12 +0000 |
| Subject: | Bug #69704 [NEW]: maximum value of intval | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-192875@lists.php.net to get a copy of this message | ||
From: youbl at 163 dot com
Operating system: Windows2008R2
PHP version: 5.6.9
Package: *General Issues
Bug Type: Bug
Bug description:maximum value of intval
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 bug report at https://bugs.php.net/bug.php?id=69704&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69704&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69704&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69704&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=69704&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=69704&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=69704&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=69704&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=69704&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=69704&r=support
Expected behavior: https://bugs.php.net/fix.php?id=69704&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=69704&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=69704&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=69704&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69704&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=69704&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=69704&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=69704&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=69704&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=69704&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=69704&r=mysqlcfg