Re: 64 bit platform improvements

From: Date: Tue, 07 Jan 2014 12:41:13 +0000
Subject: Re: 64 bit platform improvements
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-71036@lists.php.net to get a copy of this message
Hi, On Sat, December 21, 2013 13:35, Anatol Belski wrote: > 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. > I'm just curious whether you could give a try to this feature branch in the meantime and what were the results. The latest build can be found here btw http://windows.php.net/downloads/snaps/str_size_and_int64/r47df90a/ Thanks Anatol

« previous php.internals (#71036) next »