Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53247 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54556 invoked from network); 10 Jun 2011 16:47:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2011 16:47:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 207.97.245.143 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 207.97.245.143 smtp143.iad.emailsrvr.com Linux 2.6 Received: from [207.97.245.143] ([207.97.245.143:46040] helo=smtp143.iad.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/AC-54720-5AA42FD4 for ; Fri, 10 Jun 2011 12:47:34 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp24.relay.iad1a.emailsrvr.com (SMTP Server) with ESMTP id C49DB1A05F7; Fri, 10 Jun 2011 12:47:30 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp24.relay.iad1a.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id 0ECBC1A0609; Fri, 10 Jun 2011 12:47:29 -0400 (EDT) Message-ID: <4DF24AA1.4070907@sugarcrm.com> Date: Fri, 10 Jun 2011 09:47:29 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Derick Rethans CC: Hannes Landeholm , PHP Developers Mailing List References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] 32 bit / 64 bit integer confusion From: smalyshev@sugarcrm.com (Stas Malyshev) 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