Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:89335 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80962 invoked from network); 23 Nov 2015 16:04:06 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2015 16:04:06 -0000 Authentication-Results: pb1.pair.com smtp.mail=ircmaxell@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ircmaxell@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) X-PHP-List-Original-Sender: ircmaxell@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-wm0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:38183] helo=mail-wm0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EF/05-47837-4F833565 for ; Mon, 23 Nov 2015 11:04:05 -0500 Received: by wmec201 with SMTP id c201so111703349wme.1 for ; Mon, 23 Nov 2015 08:04:01 -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:content-transfer-encoding; bh=nXpuLkLUuC3EG30AWdLYwsiajf84VPICZ00jaiD9ddc=; b=B7cdA4dwF4/OezCmYi8YnCQrmoqR8PhA6Ad/QQbhuqKxhR5BA3HTDfH+4iLIi1aX4c hK+yYpxxKbD5UGvZyfQOE0xUw7DicIZUc4Ada8PFT+A2rZlsvrCGXH0Q2FYRGwvL8xjU rxvXlgaK5KpMs7Yx2xlF5WN5DsiTuNM1AU6nb9ZCrp+AJkuSoQ3rLOJsW9RIZC9eAo8+ dclPsbqPJ0O/E4b9s2D8kyw0iMPUhvmluIvYMChfaez0A/VFg7qhHOg7a+bEUcxos3Jg nSF9AyaeFXRfSJMJ/U9YiWz9TPuwLVLb9jLNmIvSe+bbSj7KCBAiju7/+0+GGGWGA0Bg mhow== MIME-Version: 1.0 X-Received: by 10.28.147.129 with SMTP id v123mr20255168wmd.98.1448294641181; Mon, 23 Nov 2015 08:04:01 -0800 (PST) Received: by 10.28.226.10 with HTTP; Mon, 23 Nov 2015 08:04:01 -0800 (PST) In-Reply-To: <62A85FD6-9BF2-44FD-96B4-5226510BA5D5@zend.com> References: <112FFBCD-8445-40BC-B92F-3A97D3E97C4C@zend.com> <56523F74.9040708@lerdorf.com> <06a601d125c0$99d5cfd0$cd816f70$@belski.net> <5652D782.40601@lerdorf.com> <14D843AC-792B-4537-8859-023B98127E7D@zend.com> <62A85FD6-9BF2-44FD-96B4-5226510BA5D5@zend.com> Date: Mon, 23 Nov 2015 11:04:01 -0500 Message-ID: To: Zeev Suraski Cc: Joe Watkins , Julien Pauli , Rasmus Lerdorf , Derick Rethans , Phil Sturgeon , Xinchen Hui , Anatol Belski , PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] INDRECT in arrays causes count() to become unpredictable From: ircmaxell@gmail.com (Anthony Ferrara) Zeev, On Mon, Nov 23, 2015 at 9:43 AM, Zeev Suraski wrote: > > >> On 23 =D7=91=D7=A0=D7=95=D7=91=D7=B3 2015, at 15:21, Anthony Ferrara wrote: >> >> Zeev and all, >> >>> On Mon, Nov 23, 2015 at 9:05 AM, Zeev Suraski wrote: >>> >>> No, but both the seriousness of the bug AND the simplicity of the fix s= it squarely outside any sort of "critical" definition. >> >> Perhaps, except that this bug was known by engine maintainers for >> months. It actually took one of them saying it outright in a chat room >> for me to be like "WTFBBQ" and raising this thread. > > A conspiracy to hide a not-very-important bug that took minutes to fix wo= uld be a bit awkward. I have no idea who knew about it, but even if someon= e did, I can only imagine that the reason it wasn't disclosed was that they= didn't think much of it. Whomever it was can shed light on this. Conspiracy is a loaded term and not at all what I meant nor said. It was known. And yes, I'm sure they didn't think much of it. That doesn't mean that there aren't other cases where individuals made tradeoffs that they feel are "worth it" but that others may not. Considering this was definitely known in advance. Causing one person to say "IS_INDIRECT is really kinda crappy, and likely has many latent bugs. It sucks that things like count($array) are no longer reliable but are now an upper-estimate" (SIC). That was how I originally found out. Heck Dmitry even admits it when he mentions that they had to work around this very issue with serialize(). I'm not pointing fingers here. I'm not even saying people acted in bad faith or anything remotely like that. I'm just saying that how many other issues like this are waiting for us to find. Where people knew about it but chose not to act because they "didn't think it was a big deal" or "it wasn't worth the performance hit". And that's fine. But at the same time it's concerning. And that's the point I was trying to get across. > Either way, looks like we're creating some really negative vibes, questio= ning the very people who we owe gratitude for creating PHP 7, and in genera= l, making an elephant out of a mouse. Let's go back to elePHPants. Who's creating negative vibes? We're pointing out that we need to be more clear around the definition of stable and the expectations for a ".0" release. If that's not being "grateful", then you're right we shouldn't be grateful. We should be professional enough to talk about our outcomes separate from the effort that got us there. We all are incredibly grateful to everyone that put forth effort. But that doesn't mean we should make compromises "just to ship something". Anthony