Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81312 invoked from network); 17 Oct 2013 15:16:12 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 15:16:12 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.169 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.220.169 mail-vc0-f169.google.com Received: from [209.85.220.169] ([209.85.220.169:37085] helo=mail-vc0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 91/AE-12663-93FFF525 for ; Thu, 17 Oct 2013 11:16:10 -0400 Received: by mail-vc0-f169.google.com with SMTP id hu8so1052297vcb.14 for ; Thu, 17 Oct 2013 08:16:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=iBQpA+L3XaqAMTIHDzhcnjAwzQUZhY7sfJh8GZMw8pA=; b=APmxjp7LkB5AE5G+KB9c4l9HlQwu4C9M3oA77zUjDOswrsBj2a+2ke80QnJM/n+fxo Rw/cCtMiMJaNKMriPpn5WLhE/G1lW5mfubl7sxAy1TDYjLD3xRSx9Bkgx3y98ZKl7MCd yCzVLTTL+enrAfaJe/7Z+8qiboAvv/uNs4NB3Rki5gr8er7QhFweI8owlMOcCOAF1xKu E7BBMCOEimLyxKuxc35EsmNMmCSBlMFuL1+Y0xyXfKiPL5R0bTsaTi4GsYZ4pDj24lnS zgUWeoIqpk7ykqxtnfesh8lOfrtNLugBe8Eca4hzrLVXOKZPnc4ovEkPBJJaoQACM1BA h9CA== X-Received: by 10.220.164.202 with SMTP id f10mr1185257vcy.25.1382022967109; Thu, 17 Oct 2013 08:16:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.248.195 with HTTP; Thu, 17 Oct 2013 08:15:47 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 11:15:47 -0400 Message-ID: To: Ferenc Kovacs Cc: Levi Morrison , Benjamin Schneider , internals Content-Type: multipart/alternative; boundary=001a11c1e98006adac04e8f14c08 Subject: Re: [PHP-DEV] Proposal: Introduction of InvalidStateException From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --001a11c1e98006adac04e8f14c08 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable @Ferenc: Ok, so let's try to wrap all these suggestion in the SPL RFC you pointed out and vote. @Levi: I'd suggest to minimize BC breaks if you're willing to get this merged. Dunno how to proceed here, but that should be the focus. On Thu, Oct 17, 2013 at 10:57 AM, Ferenc Kovacs wrote: > > > > 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 ambiguo= us >> 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 fo= r >> 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. > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > --=20 Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --001a11c1e98006adac04e8f14c08--