Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

10000000000 某些环境超过 PHP 最大整形 #3249

Closed
wants to merge 1 commit into from

Conversation

jianzhiyao
Copy link
Contributor

@jianzhiyao jianzhiyao commented Sep 1, 2018

系统相关

PHP_VERSION

7.0.12

OS

Windows x64

PHP 相关参数

参数
Build Date Oct 13 2016 10:44:50
Compiler MSVC14 (Visual C++ 2015)
Architecture x86

测试代码

<?php
var_dump([
    '10000000000' => 10000000000,
    'PHP_INT_MAX' => PHP_INT_MAX,
    'PHP_VERSION' => PHP_VERSION
]);
exit;

结果输出

array (size=3)
  '10000000000' => float 10000000000
  'PHP_INT_MAX' => int 2147483647
  'PHP_VERSION' => string '7.0.12' (length=6)

10000000000 已超过 当前环境下 PHP 最大整形

## 系统相关
### PHP_VERSION
7.0.12
### OS
Windows x64

## 测试代码
```php
<?php
var_dump([
    '10000000000' => 10000000000,
    'PHP_INT_MAX' => PHP_INT_MAX,
    'PHP_VERSION' => PHP_VERSION
]);
exit;
```

## 结果输出
```
array (size=3)
  '10000000000' => float 10000000000
  'PHP_INT_MAX' => int 2147483647
  'PHP_VERSION' => string '7.0.12' (length=6)
```

10000000000 已超过 当前环境下 PHP 最大整形
@jianzhiyao jianzhiyao closed this May 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant