Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70233 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21334 invoked from network); 20 Nov 2013 11:41:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2013 11:41:27 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.176 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.216.176 mail-qc0-f176.google.com Received: from [209.85.216.176] ([209.85.216.176:35239] helo=mail-qc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F6/E6-20870-5EF9C825 for ; Wed, 20 Nov 2013 06:41:25 -0500 Received: by mail-qc0-f176.google.com with SMTP id n9so43038qcw.21 for ; Wed, 20 Nov 2013 03:41:22 -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=cbo1UfSosr65zPg1AYADOG7Kuho6ZbFlQduJTtHH2gw=; b=sbB5KkRRX0Bdtrl1eJYZFf4w7OEnmfUK5vFCCmPqJioisby1JvtnvnPszInwO+4I8/ XVnfoX8gIw+aLoIiPgmpNqnZXlCAhTWJfD/o9MgrhY3mkpsL8Fyjk4sDtXf62EURboPn KsHqJldm6jJdEGMqAiHJtGE3FhSySOtq3J5BrdRU1RtOiEIWYEwAxl7fkeWHK7IYMkTi ufr2HR6Qiap6bs0l/gmZjtzTpRZxJaGSh371npSzWxOmlIh3w1FePzDCMVRBSsh2WGGD va9djcZBrEcH2l+7xZJu7tkEjwlpZ95kS7f/mJ7UXt1onlgltAXDvRoGrjQTlGSUfHUz WJZQ== MIME-Version: 1.0 X-Received: by 10.224.15.144 with SMTP id k16mr567402qaa.16.1384947682371; Wed, 20 Nov 2013 03:41:22 -0800 (PST) Received: by 10.140.37.201 with HTTP; Wed, 20 Nov 2013 03:41:22 -0800 (PST) In-Reply-To: References: Date: Wed, 20 Nov 2013 12:41:22 +0100 Message-ID: To: Nikita Popov Cc: PHP internals Content-Type: multipart/alternative; boundary=047d7bdc9a86a3f2be04eb9a42cd Subject: Re: [PHP-DEV] Making "backwards compatibility" discussions more constructive From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bdc9a86a3f2be04eb9a42cd Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Nov 19, 2013 at 8:16 PM, Nikita Popov wrote: > Hi internals! > > In a lot of the recent discussions (e.g. the HTTP_RAW_POST_DATA one) I've > seen the "we can't break backwards compatibility in PHP 5.x.y" argument > crop up again and again. > > This rather unfortunate formulation takes root in the releaseprocess RFC > [1] and drives all discussions of BC issues into a non-constructive > direction. > > Fact is that nearly all changes (by being changes...) break backwards > compatibility to some degree [2] and we *do* most certainly allow them in > both minor and bugfix releases. Whether they are allowed (and for what > version) depends on the *severity* (rather than existence) of the breakag= e. > > I would really appreciate it if we could move BC-related discussions away > from "Does it break BC?" (Yes, it does, in some way) to "How much does it > break BC and are we okay with that?" > > In the context of the HTTP_RAW_POST_DATA discussion this means thinking > about questions like a) how much code will be negatively affected, b) how > hard will it be for the code to be fixed and c) do the benefits in > performance, memory usage and/or functionality (significantly?) outweigh > the inconvenience of code-adjustments? > > > > As some people have a hard time understanding that small BC breaks are > introduced routinely and intentionally, some examples of changes that are > considered "generally okay" for bugfix and minor releases: > > Bugfix x.y.z -> x.y.(z+1): > > * Addition of new functions, if the function name is unlikely to already > be in (unconditional) use. E.g. the addition of getallheaders() for the > built-in webserver in PHP 5.5.7. > * Changes in the behavior of functions where a) the old behavior was > considered buggy and b) not much code was relying on the old behavior (mo= st > bug fixes minus crashes fall into this category) > > Minor x.y.0 -> x.(y+1).0 > > * Addition of new keywords, if the keyword is not commonly used in code > already. (E.g. "yield", but not "user"). > * Deprecation of functions or language features. In practice deprecation > of heavily-used components like ext/mysql is *one hell* of a BC break, bu= t > we're okay with it for minor versions. (This also includes addition of > other non-fatal errors) > * Removal of long-deprecated or little used functionality. E.g. the logo > guid functions were removed in 5.5. > * Changes in the behavior of the language where a) the old behavior was > considered buggy and b) not much code was relying on the old behavior. > > Thanks, > Nikita > > PS: I think that it would be nice to adjust the releaseprocess RFC to > clarify this point, to make things clearer for both contributors and > end-users. The current promise sounds a lot like "You can just update fro= m > 5.4 to 5.5 and won't need to make any code changes", but for any > non-trivial (legacy) codebase that's pretty far from the truth. > > [1]: https://wiki.php.net/rfc/releaseprocess > [2]: http://xkcd.com/1172/ > Hi Nikita, Thank you for your feedback on the issue. Personally I think that our current release process RFC only solves half of the problem. We were seeing slow adoption rates for new versions and also users complaining about every second micro version breaking backward compatibility (some of those concerns were ofc. magnified), but having the current release process, which promises complying with the current best practices, aka semantic versioning (http://semver.org/). I think that the rfc should be a bit more descriptive/exact about what do we mean by API/ABI BC break, and bugfix, but otherwise it is fine. Additionally it is also defines the yearly release cycle, and the two+one year support cycle, which is also quiet nice. From the userland POV, we covered all the bases, you know what you can expect from a release and when can you expect a new release. What we didn't cover is the issue of the major versions. Currently there is no way to plan any change which requires a BC break and doesn't qualify as a bugfix. This causes issues like: - people are frustrated that there is no way to tell when or if a contribution will make it into a release if it requires a BC break - which causes people to try and force/sneak in BC breaks into minor versions - which causes additional stress and work to the RMs and those who are trying to follow the process, and also erodes the users trust in the new model when they see that we still don't follow the rules we put forward = to ourselves. - we don't have a place/branch to accept backward incompatible changes, because we have no way to tell beforehand, whether the next version will= be a minor or major, everything goes into master, then we end up in a situation, when branching out the new minor version is a PITA, because i= t could have everything from master, except those dozend of commits which = are related to that single backward incompatible change that we have there. We had this discussion before, and I agree with Rasmus and co. that in an open-source, volunteer-based project we can't really tell beforehand, that what will be in the next version, before the work is actually done (otherwise we end up with another PHP6, where there a bunch of promises what should be there, and the release is stucked when some milestone feature gets delayed/abandoned), but I do think that we could do stuff like communicate that we can have a major release like in every 3 years, which will be supported at least for 3 minor releases. That way both the userland and the core developers could have some kind ETA for getting there changes, and we could always skip/delay the major version if there is nothing which would require a major release(albeit I don't think that we would ever run short of backward incompatible changes). tl;dr: I would like to stick with the current release process and don't start using the previous bad process/exceptions as an excuse to keep adding backward incompatible changes to our minor versions, but I would like to extend the release process to cover the lifecycle of major versions. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7bdc9a86a3f2be04eb9a42cd--