Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61382 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25783 invoked from network); 17 Jul 2012 22:47:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jul 2012 22:47:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.49 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.216.49 mail-qa0-f49.google.com Received: from [209.85.216.49] ([209.85.216.49:40535] helo=mail-qa0-f49.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 41/95-33055-87BE5005 for ; Tue, 17 Jul 2012 18:47:20 -0400 Received: by qabj40 with SMTP id j40so732437qab.8 for ; Tue, 17 Jul 2012 15:47:18 -0700 (PDT) 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=GbfTZoRPgWa2TbuxRLM3qGGpFhrp9NVS9s5cU/ynKT0=; b=pAOCJbhKGyTW0KaQ7XFCUqT0ASmuXS4kFMYpY2lTVHdJrs8uscJcb6VQ8tv8KC7Yl8 sBt2RTzZGcX1+Wh1SxCc3dNXher2yCA6rgVdPcB8f276tC+jQBQXQ4delAJeTDcRKjnK BNhd2hWSmnCOGQIVJVlrzvfVg727znUD65Yvm2cQaZfZtEdt3wOgCCOj7N1z4rlNolfG 0+bCLBTUIVUEb2cP/auOfhlvxG4F2atqby9tiMy8mmxTQj0B8e/70kCLYMS5j0gbzu1L 36vweztS+LhspmA8Kd8fL+S1ko3PCdsKfrtFY7tLWT52wTIxVdZgTlecVZnYq42ZV9km xW5w== MIME-Version: 1.0 Received: by 10.224.220.81 with SMTP id hx17mr2343112qab.49.1342565237941; Tue, 17 Jul 2012 15:47:17 -0700 (PDT) Received: by 10.229.85.204 with HTTP; Tue, 17 Jul 2012 15:47:17 -0700 (PDT) In-Reply-To: References: Date: Tue, 17 Jul 2012 15:47:17 -0700 Message-ID: To: Dan Cryer Cc: Andrew Faulds , Christoph Hochstrasser , internals@lists.php.net, Anthony Ferrara Content-Type: multipart/alternative; boundary=20cf3074b36818640b04c50e54e8 Subject: Re: [PHP-DEV] 6.0 And Moving Forward From: kris.craig@gmail.com (Kris Craig) --20cf3074b36818640b04c50e54e8 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jul 17, 2012 at 3:43 PM, Kris Craig wrote: > > > On Tue, Jul 17, 2012 at 8:48 AM, Dan Cryer wrote: > >> > >> > The problem, of course, is changing and removing things can break BC. >> I'd >> > love to remove list() too, but that would break code relying on it. >> >> >> Isn't that kind of the point of the whole discussion? This is talking >> about >> completely rewriting the standard library for PHP 6, but providing a >> legacy >> extension/compile time option, which would bring with it almost complete >> backwards compatibility with PHP 5. >> >> > I think any reasonable person would expect there to be a significant > number of BC breaks in any major version increment. That being said, > wouldn't it be possible in most of these cases to just do what we already > do and use the E_DEPRECATED flag? That way, people will have a reasonable > amount of time to update their code to current standards before a behavior > is removed completely. > > And in cases where E_DEPRECATED > Bah just had an unfortunate sequence of unintentional keystrokes.... As I was saying: ....And in cases where E_DEPRECATED wouldn't be feasible (such as with changing function arguments), my thinking would be to just make the change without having any legacy flags that have to be maintained. Again, it's a major version change. Nobody should be getting butthurt over BC breaks. If you haven't updated your code since PHP 3, for example, my answer would be to either update your code or stick with PHP 3. The rest of us shouldn't have to maintain inferior behavior-- especially in major version increments-- just to accommodate those developers who refuse to keep their code up-to-date. --Kris --20cf3074b36818640b04c50e54e8--