Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69630 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78213 invoked from network); 17 Oct 2013 14:57:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 14:57:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.182 as permitted sender) X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.223.182 mail-ie0-f182.google.com Received: from [209.85.223.182] ([209.85.223.182:52425] helo=mail-ie0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8B/0E-12663-4EAFF525 for ; Thu, 17 Oct 2013 10:57:40 -0400 Received: by mail-ie0-f182.google.com with SMTP id as1so4185881iec.27 for ; Thu, 17 Oct 2013 07:57:37 -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=Eg1fJQeOQz7Mh3mtJQoYUnv1CGowzTQKCGdii41BugI=; b=qhe5aMebVoQyPE/6W9r3R7/u3OcQVuYkHfUgCu1Hq8q6TFIpUL+ChXFbhU8sfxiOZ5 VUjm9xqRxnrM3XaXqk5cjwz3Fj96o88gGxcWCoMz06qDhtHa+PotT3Ui3u68wc3mD25c gX/47UTVExDLd22/aT+EbBQQbzOrNtHCrhQOugQ4Q4evzeKQGzoNm/k3yHuZwjWp1U18 /o7Nkopda+q8ukjTPz6pM7uqRstEL9ruLxbnS8Pe1E9s/k95x2VwFBtPKSDcOs1/OgPa 1FthAOdhQOzCjILkBCpV9JL/lJbOE+PhjCEB6CshhqiFfI5fyIM7dwUELT4JZmcpEj7y xCBQ== MIME-Version: 1.0 X-Received: by 10.50.67.37 with SMTP id k5mr26077555igt.21.1382021857483; Thu, 17 Oct 2013 07:57:37 -0700 (PDT) Received: by 10.50.73.42 with HTTP; Thu, 17 Oct 2013 07:57:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 16:57:37 +0200 Message-ID: To: "guilhermeblanco@gmail.com" Cc: Levi Morrison , Benjamin Schneider , internals Content-Type: multipart/alternative; boundary=047d7bdc1870e3226504e8f109c8 Subject: Re: [PHP-DEV] Proposal: Introduction of InvalidStateException From: tyra3l@gmail.com (Ferenc Kovacs) --047d7bdc1870e3226504e8f109c8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Thu, Oct 17, 2013 at 4:43 PM, guilhermeblanco@gmail.com < guilhermeblanco@gmail.com> wrote: > Ferenc, > > How much of this is PHP willing to take as BC break? > Like changing from one Exception to another (UnderflowException to > RuntimeException) and removing OutOfRangeException because it is ambiguou= s > seems very hard fro PHP to take in a PHP 5.6 for example. > > I may have some time to try something, but I wouldn't spend time just for > the sake of doing if it's gonna be rejected later. > > Cheers, > > The current release process (https://wiki.php.net/rfc/releaseprocess) wouldn't allow it in 5.6, but one could argue that: 1, the usage of these exceptions not that wide-spread 2, the upgrade path (in your example) is pretty simple, replace every occurance of UnderflowException to RuntimeException in your codebase, (I would also argue to not remove OutOfRangeException, but rename it as we already have that used in spl and php code out there could also use it already), we could even provide tools to help the migration. but, this is really a hard topic, because it is more of a semantic issue, and that is a bit weak argument for breaking BC, so this would require a really thought-out RFC and the voters could still say no. I think the actual implementation/patch would be really simple, so the hard part of the task is to figure out the proper naming and hierarchy. --=20 Ferenc Kov=C3=A1cs @Tyr43l - http://tyrael.hu --047d7bdc1870e3226504e8f109c8--