Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81930 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99339 invoked from network); 5 Feb 2015 14:24:24 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Feb 2015 14:24:24 -0000 Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.180 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 209.85.212.180 mail-wi0-f180.google.com Received: from [209.85.212.180] ([209.85.212.180:55076] helo=mail-wi0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 50/6E-27691-61D73D45 for ; Thu, 05 Feb 2015 09:24:22 -0500 Received: by mail-wi0-f180.google.com with SMTP id h11so10891042wiw.1 for ; Thu, 05 Feb 2015 06:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=Y0cl+e6lkPNJhJYjXr5bB1cl8E+ZB/NI+ywSijqp8TE=; b=dMGKo9g//DiPlk5wjZqPP/2OsX3+PrWsbVIdK4Nx3ILrEXAdG/Ba5Fg1AKSBCDKduN DJEY5wcVhDVPAM8iyNFX/bDhSzB9zX+oPdAxWzcBQ3QgirWts9nnju2qzP9Y8iDiNeE4 EgB6rVDsSa4e4cEDBZ5EW+qdR5UkGx8yOnVQ6sEtDh+aGeTGdQlF1Fqo7dSrsSDahHMl XRKmhgDUzwQrpFV27sbzZmngQ01o8+Rk87FGlCmmln0QvS8nC8Y4zkKXCQBMkIWzoBK0 NPr3iv03vpX2bwF7NU2o4CV5xGKdUtjqqv0QosSKNKcJpCHwIqKSvveVLqntQMBS3ZO4 l9Vg== X-Received: by 10.194.6.228 with SMTP id e4mr8092064wja.63.1423146258399; Thu, 05 Feb 2015 06:24:18 -0800 (PST) Received: from [192.168.0.172] ([62.189.198.114]) by mx.google.com with ESMTPSA id bo3sm7580223wjb.44.2015.02.05.06.24.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 06:24:17 -0800 (PST) Message-ID: <54D37D09.6050803@gmail.com> Date: Thu, 05 Feb 2015 14:24:09 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: internals@lists.php.net References: <54D34CD6.6020401@lsces.co.uk> <585A6531-BFF1-4B40-9052-518518A9409F@ajf.me> <54D36322.8080805@lsces.co.uk> <54D372CD.5070007@gmail.com> <54D377AF.9030009@gmx.de> In-Reply-To: <54D377AF.9030009@gmx.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] hints and constraints From: rowan.collins@gmail.com (Rowan Collins) Christoph Becker wrote on 05/02/2015 14:01: > Rowan Collins wrote: > >> There is nothing new about PHP's userland int type being 64-bit on >> 64-bit platforms. For instance, raising 2 to the power of 62 returns >> exactly the same thing on every version of PHP back to 4.3.0: >> http://3v4l.org/VBMbv > Unfortunately, that's not true for Windows, see > : > > | The x64 builds of PHP for Windows should be considered experimental, > | and do not yet provide 64-bit integer or large file support. Please > | see this post for work ongoing to improve these builds. > Yes, the picture on Windows is rather different, hence my second comment that most production builds of PHP are probably on (64-bit) Linux. The point is that writing code in PHP and assuming integers will overflow after 32 bits has been a bad idea for a long time, outside of really unusual cases like COM integration [1], where there's a valid reason to assume you'll never want to run it on Linux. [1] http://php.net/manual/en/book.com.php Regards, -- Rowan Collins [IMSoP]