Re: 32 bit / 64 bit integer confusion
| From: | Stas Malyshev | Date: | Fri, 10 Jun 2011 16:47:29 +0000 |
| Subject: | Re: 32 bit / 64 bit integer confusion | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53247@lists.php.net to get a copy of this message | ||
Hi!
I agree that that should be the same. But sadly, Windows uses a different integer size model than almost everything else modern. Where Linux and Mac and other unices use 8 bytes for an "int", Windows uses 4 bytes (http://en.wikipedia.org/wiki/LP64#Specific_C-language_data_models). Because PHP internally uses "int" for its integer type, on Windows that's still only 32 bit.Erm... typedef union _zvalue_value {
long lval; /* long value */
double dval; /* double value */
ITYM PHP uses "long" which unfortunately isn't long on windows.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227