Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53251 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62211 invoked from network); 10 Jun 2011 17:13:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2011 17:13:55 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.212.42 mail-vw0-f42.google.com Received: from [209.85.212.42] ([209.85.212.42:51638] helo=mail-vw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 58/0E-54720-1D052FD4 for ; Fri, 10 Jun 2011 13:13:53 -0400 Received: by vwl1 with SMTP id 1so2687530vwl.29 for ; Fri, 10 Jun 2011 10:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PC8y0Q8tiPr/K6MbNasVICYsYeKSCWlTsoogIkEQBQQ=; b=C+mQC7zHqCBRIoyoae93YbyulMe1jRe80bfH9eFfn+A3rfExaeTGlL52DBUxErxoAe X9O1YQPgnau3OZ0th6gJb7mYw65gF/DM0iSdITZ3DoNCWmw9fRWQf/zSyXS9a6WGmJUp iCQymcLPVuvETj+jH6vJjYH+Ks0+csS5gvLEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=pIC4Hhmxnz8qwLenNNlPBW60ltlEJJPOYQ0nCVFNzxb9/fJ/lSlXgvfhYs2IiJbyOO ZwK3N0KG7ApAiuqFOeaHGy2/jp/hJsuHziwc3a48NNaIJAEpFaqlhSnid4syd07Hz355 eefF0rkuQAagbfku68H8ZZGxAGtjSGbBq2hXY= MIME-Version: 1.0 Received: by 10.52.116.33 with SMTP id jt1mr3380132vdb.249.1307726028957; Fri, 10 Jun 2011 10:13:48 -0700 (PDT) Received: by 10.52.163.97 with HTTP; Fri, 10 Jun 2011 10:13:48 -0700 (PDT) In-Reply-To: References: <4DF24AA1.4070907@sugarcrm.com> Date: Fri, 10 Jun 2011 19:13:48 +0200 Message-ID: To: John Crenshaw Cc: Stas Malyshev , Derick Rethans , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] 32 bit / 64 bit integer confusion From: pierre.php@gmail.com (Pierre Joye) On Fri, Jun 10, 2011 at 7:08 PM, John Crenshaw wrote: > >> 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 > > This is not exactly correct. I think what you meant to say, is "long isn't the same size as a pointer on Windows". One should never ever use long to store an address (pointer), just like one should never use int or long to store the length of a buffer (size_t). Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org