Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71797 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41720 invoked from network); 30 Jan 2014 16:16:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Jan 2014 16:16:54 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass 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.215.42 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.215.42 mail-la0-f42.google.com Received: from [209.85.215.42] ([209.85.215.42:35223] helo=mail-la0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3B/13-42724-4FA7AE25 for ; Thu, 30 Jan 2014 11:16:53 -0500 Received: by mail-la0-f42.google.com with SMTP id hr13so2776895lab.29 for ; Thu, 30 Jan 2014 08:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=TQBJpPfYWlBXjTAC8IQT/rYnbMgm8iRbrmZqEJN36OM=; b=peyn8t5wz9mUsWLUoaEldx8Z20hH+7huzLCNpffPirPhbi0SOCMXI5LgYeVvtaaumU ONu+xrX5PiL9Si3C/LqJ4tSBqMfWEf/vvxz9Bte9pbB91LPR5RRsuS1KOC1bqIdSwHjW iJpJUTmWbfDwqdOQPjKzDyXV8c0qqjQ3DSyl+itS4WVYVUY/z8REnwWfWEtcwDAMt0vy 4HHh9YUFtrLrJ/OgtzooMWRzMEdoh8BpWF6tKxM33oysUhrWBphTUIARiUAxrJkSxIDL Ka83aWV3y+yDUhO06iE09mBpFvAxJrkY7ctiiJI4HHCCiHZ5LabnLRtCCI+dI2PEns52 QXWg== MIME-Version: 1.0 X-Received: by 10.153.8.225 with SMTP id dn1mr10293134lad.17.1391098609863; Thu, 30 Jan 2014 08:16:49 -0800 (PST) Received: by 10.112.35.163 with HTTP; Thu, 30 Jan 2014 08:16:49 -0800 (PST) In-Reply-To: <52EA738D.5060600@lerdorf.com> References: <52E8C097.6080208@lsces.co.uk> <52EA738D.5060600@lerdorf.com> Date: Thu, 30 Jan 2014 17:16:49 +0100 Message-ID: To: Rasmus Lerdorf Cc: Arvids Godjuks , PHP internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] some thoughts about php 6 From: pierre.php@gmail.com (Pierre Joye) On Thu, Jan 30, 2014 at 4:45 PM, Rasmus Lerdorf wrote: > On 1/30/14, 2:26 AM, Arvids Godjuks wrote: >> So, I say you go with the 64 bit improvements for 5.6, set all the things >> in motion, do the porting docs and make a hell lot of noise about this. I'm >> willing to help with the information campaign, because this lack of proper >> 64 bit support has gave me a few "WTF?!" situations when I had to figure >> out why things do not work and realize it's due to the 64 vs 32 bit issues. > > You make it sound like 64-bit vs. 32-bit issues will go away with this > patch. If you are writing portable code that should run the same > everywhere you still have to worry about it. Right, for anything outside php's API&types usage. But that's already a huge step forward. > This change does not > suddenly give you 64-bit integers on a 32-bit platform. The main thing > this does is it makes 64-bit Windows no longer look like a 32-bit > platform. That's not accurate. The main things this patch does is to ensure correct types for 64bit, ensure that large buffer length can be managed correctly. It also provides compile time checks for 64bit types where it was harder to figure them out before. The Windows support for 64bit integer is a good side effect of this patch and why we could assign resources to work on it. Please keep in mind that the initial steps had nothing to do with Windows specific features. > Other true 32-bit platforms remain 32-bit. It also makes it > possible to have >2g strings on 64-bit platforms, but this is hopefully > a rather rare requirement. Imagine running that code on a server with > MaxClients set to 50... > I am all for this change, but I still think it is too big of an API > break for a point release. I tried a couple of exts, it is really not that big. I will try to improve the replace.php script to automate more things, especially around zpp and related variables. That will ease the port of most of the extensions. Cheers, -- Pierre @pierrejoye | http://www.libgd.org