1. it runs normally on personal laptops and Sina servers, and this problem occurs when running in the company. The company's php5.6 and 64-bit operating systems 2. the code is as follows: 3. the normal result is: 4. exception result: 5. the reason is the php version, the operating system, or the php version...
1. it runs normally on personal laptops and Sina servers, and this problem occurs when running in the company.
The company's php5.6 and 64-bit operating systems
2. the code is as follows:
3. the normal result is:
4. exception results:
5. what is the reason? is the php version a problem, the operating system, or something else?
Reply content:
1. it runs normally on personal laptops and Sina servers, and this problem occurs when running in the company.
The company's php5.6 and 64-bit operating systems
2. the code is as follows:
3. the normal result is:
4. exception results:
5. what is the reason? is the php version a problem, the operating system, or something else?
Http://php.net/manual/zh/language.types.integer.php
If a given number exceeds the integer range, it is interpreted as float. Similarly, if the execution result exceeds the integer range, float is returned.
You can try it firstPHP_INT_MAX
Is there a difference between the size of your machine and the service?
If you do not dare to solve this problem, the final result will be converted to string