M
M
Maxim Morozov2015-07-31 12:11:16
PHP
Maxim Morozov, 2015-07-31 12:11:16

How to make php x64 under windows work with big numbers?

There is Apache 2.4 x64 and php 5.6.11 x64 from php.net from here (the archive with PHP there is downloaded with the name win32 for some reason). So this supposedly x64 version displays PHP_INT_MAX as in 32 bit.
You need to somehow make PHP_INT_MAX greater than 2147483647 so that you can work with large numbers in php under Windows. How can I do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Melkij, 2015-07-31
@murzix

Wait PHP7. It's not long now.
Under Windows and PHP 5.x it is impossible. There int is always 32-bit.
Other options:
- classic big math: bcmath, GMP
- put a normal *nix in the virtual machine and work there. Under nix, int is going to be 64-bit.

R
Rikcon, 2015-07-31
@Rikcon

stackoverflow.com/questions/864058/how-to-have-64-...
They write that it's not real on Windows.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question