Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:53249 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58423 invoked from network); 10 Jun 2011 17:02:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jun 2011 17:02:58 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 217.114.211.66 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 217.114.211.66 ns.km36107.keymachine.de Received: from [217.114.211.66] ([217.114.211.66:53954] helo=config.schlueters.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/4D-54720-14E42FD4 for ; Fri, 10 Jun 2011 13:02:58 -0400 Received: from [192.168.2.230] (ppp-93-104-53-99.dynamic.mnet-online.de [93.104.53.99]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by config.schlueters.de (Postfix) with ESMTPSA id B53E772AD3; Fri, 10 Jun 2011 19:02:52 +0200 (CEST) To: Derick Rethans Cc: Stas Malyshev , Hannes Landeholm , PHP Developers Mailing List In-Reply-To: References: <4DF24AA1.4070907@sugarcrm.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 10 Jun 2011 19:02:48 +0200 Message-ID: <1307725368.3269.548.camel@guybrush> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] 32 bit / 64 bit integer confusion From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Fri, 2011-06-10 at 17:52 +0100, Derick Rethans wrote: > Yes, indeed. That was a typo. The original point still stands though. > And IMO, this should be fixed in the Windows port so that on 64 bit > processors, the PHP "int" type (the C "long" type) is actually 64 bits, > just like almost any other current operating system/compiler set-up. While this will cause "strange" behavior when using "large" integers with some of our extension functions calling some c lib ... imagecreate(42949323647, 21444347483647); as a random example. (assuming one has enough ram ;-) ) johannes