Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53250 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60019 invoked from network); 10 Jun 2011 17:08:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2011 17:08:32 -0000 Authentication-Results: pb1.pair.com header.from=johncrenshaw@priacta.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=johncrenshaw@priacta.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain priacta.com designates 64.95.72.238 as permitted sender) X-PHP-List-Original-Sender: johncrenshaw@priacta.com X-Host-Fingerprint: 64.95.72.238 mx1.myoutlookonline.com Received: from [64.95.72.238] ([64.95.72.238:50878] helo=mx1.myoutlookonline.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FA/9D-54720-E8F42FD4 for ; Fri, 10 Jun 2011 13:08:30 -0400 Received: from st20.mx1.myoutlookonline.com (localhost [127.0.0.1]) by mx1.myoutlookonline.com (Postfix) with ESMTP id 2BF168BE27F; Fri, 10 Jun 2011 13:08:27 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB025.mail.lan (unknown [10.110.2.1]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.myoutlookonline.com (Postfix) with ESMTPS id 9F5FA8BE12A; Fri, 10 Jun 2011 13:08:24 -0400 (EDT) Received: from MAILR001.mail.lan ([192.168.1.2]) by HUB025.mail.lan ([10.110.17.25]) with mapi; Fri, 10 Jun 2011 13:07:10 -0400 To: Stas Malyshev , Derick Rethans , PHP Developers Mailing List Date: Fri, 10 Jun 2011 13:08:11 -0400 Thread-Topic: [PHP-DEV] 32 bit / 64 bit integer confusion Thread-Index: AcwnjgK8TylOCFhWSdayaW4ql4Ys9wAALEsw Message-ID: References: <4DF24AA1.4070907@sugarcrm.com> In-Reply-To: <4DF24AA1.4070907@sugarcrm.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: RE: [PHP-DEV] 32 bit / 64 bit integer confusion From: johncrenshaw@priacta.com (John Crenshaw) > ITYM PHP uses "long" which unfortunately isn't long on windows. >=20 > --=20 > Stanislav Malyshev, Software Architect > SugarCRM: http://www.sugarcrm.com/ > (408)454-6900 ext. 227 This is not exactly correct. I think what you meant to say, is "long isn't = the same size as a pointer on Windows". Long us guaranteed only to be able to hold up to 4 bytes of data. That some= platforms compile it to a size larger than 4 bytes is an unfortunate devia= tion from what (IMO) should be the norm of holding EXACTLY the minimum requ= ired size. In any case, any code that expects long to hold more than 4 byte= s is fundamentally broken. See http://stackoverflow.com/questions/589575/c-= size-of-int-long-etc#answer-589684 and http://jk-technology.com/c/inttypes.= html#limits John Crenshaw Priacta, Inc.