Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I can't find this row in php.ini, so is there any way to increase PHP_INT_MAX?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
517 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can increase PHP_INT_MAX. As others have said, PHP_INT_MAX is platform dependent. That means on 32 bit hardware or a 32 bit OS or a 32 bit compile of PHP, PHP stores the bit in 4 bytes (max of about 2 billion). However, if all 3 are 64 bit, the max goes to 8 bytes (about 9e18 or 9,000,000,000,000,000,000).

So if you really want large ints, get a 64bit machine, and a 64bit OS, and a 64bit compile of PHP...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...