Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:71896 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60659 invoked from network); 31 Jan 2014 21:32:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2014 21:32:19 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.44 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.215.44 mail-la0-f44.google.com Received: from [209.85.215.44] ([209.85.215.44:39693] helo=mail-la0-f44.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F1/61-54292-1661CE25 for ; Fri, 31 Jan 2014 16:32:18 -0500 Received: by mail-la0-f44.google.com with SMTP id hr13so212706lab.17 for ; Fri, 31 Jan 2014 13:32:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=k0Arqy0WrBVNzxeKDyLHV5K5qXpUJ0NbkV/nLW+2wGs=; b=aTMxvGsNyENhZHh/NmORGOaeKDvGW7OjWZ0YSZN0Tl/rGaN2pnXWkNP7ml5NdHHHCd 1wMtC03fuIWKjhTH9z+qY2sMG/8qVW2PDc33qR/go0hguzUFd+GFpEhrECsNaDmpxbrs q4Lutdh8/CygmSsQXdQ/ZXXrpRpAjMI6PIGHsmmTj9GJ4MR6igxc2dXoiT15wK7ITcE+ iGyXpdhd5PHlxHbq3lkn8TMdZFUdnAsGHk5tQFWYNeKJSDunY+b8uk9YmzKwW4FzZZ1a uml6219sJXZMPOeJgffgof2IEY39ABRd8XcE6W3kVJVlyfr0kaq6DGZwocaf8ozQHT4q Zgqw== X-Received: by 10.112.64.37 with SMTP id l5mr2669031lbs.49.1391203934201; Fri, 31 Jan 2014 13:32:14 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.112.199.37 with HTTP; Fri, 31 Jan 2014 13:31:34 -0800 (PST) In-Reply-To: <52EAF181.3000907@sugarcrm.com> References: <52EAF181.3000907@sugarcrm.com> Date: Sat, 1 Feb 2014 06:31:34 +0900 X-Google-Sender-Auth: UxZKNIknDfZrBbqY44-J4fPf-hM Message-ID: To: Stas Malyshev Cc: Derick Rethans , Anatol Belski , PHP Developers Mailing List , Matt Ficken , "Stephen A. Zarkos" Content-Type: multipart/alternative; boundary=001a11c3fc824eead504f14ae893 Subject: Re: [PHP-DEV] [VOTE] 64 bit platform improvements for string length and integer From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c3fc824eead504f14ae893 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all, On Fri, Jan 31, 2014 at 9:42 AM, Stas Malyshev wrot= e: > > Okay, so I've just looked at your attempt to port the MongoDB driver to > > the "size_t" branch: > > > https://github.com/weltling/mongo-php-driver/compare/mongodb:master...mas= ter > > > > And seriously, this one of the biggest mistakes I've seen in a while. > > Changing APIs so much that basically half of your code needs an update, > > or #ifdef hell. This is not acceptable, especially not for a PHP 5.X > > branch =E2=80=94 especially not so late in the game for 5.6! > > Yeah, I looked at that patch and also at the diff between what > replace.php produces and what is the end result, and it kind of worries > me. Especially the part when you have to manually update all the types > and how easy it is to miss one. Not sure, if this is solved > automatically then I might be overreacting but right now it looks like > I, for example, have been underestimating the amount of code disruption > this is causing. I think refactoring PHP types and cleaning them up is a > good idea, but it also means I can't recommend 5.6 adoption to anybody > for years after the release, after we're sure extensions that were > disrupted are stable again. And we're not on stellar numbers with 5.5 > adoption now, even given 5.4 to 5.5 supposed to be pretty much smooth > ride unless you mess with opcodes. > > Again, I'm not against the idea of the patch or the implementation, but > looking at how much work it seems to take for ext author, I'd say it may > be a good start for PHP 6 branch. Once code is updated, then it's a matter of including compatibility header for older PHP, is't it? However, it's requires many line of changes. Personally, I don't mind it at all, though. Although, I would like to see it soon. It may be better to introduce it fro= m 6 and start 6 branch now. Even if we choose this path, it would be better provide new type and macro definition to PHP 5.x for 3rd party modules. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c3fc824eead504f14ae893--