Re: 64 bit platform improvements
Hi Arvids,
On Sat, December 21, 2013 12:24, Arvids Godjuks wrote:
> I have a question regarding 64 bit windows build and work done on x64.
> I just found out that on x64 PHP 5.5.5 build the PHP_INT_MAX shows a 32
> bit integer max value. Is this going to change in line with Linux? I just
> spent 20 minutes figuring out why it didn't work on Windows and worked on
> Linux
> dev machine (that one has a x86_64 PHP).
>
> Quite un-unintuitive.
> Thanks!
>
thanks for the interest on this patch. While compiled as 64 bit, current
PHP uses the 'long' datatype which is 32 bit on any Windows platform.
That's why 5.5.5 x64 release (and any release based on the current
codebase) is just a wrong place to look.
Here's the latest build of the feature branch
http://windows.php.net/downloads/snaps/str_size_and_int64/r3f2f1b2/
which
uses true 64 bit integers. That build is based on patched PHP master
sources, along with 64 bit integers it takes advantage of many other 64
bit features - LFS, large memory_limit, etc. Both linux and windows
support much longer strings, too.
Thanks
Anatol
Thread (11 messages)