Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69627 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73606 invoked from network); 17 Oct 2013 14:43:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 14:43:57 -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.181 as permitted sender) X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.220.181 mail-vc0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:50859] helo=mail-vc0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D8/0D-12663-CA7FF525 for ; Thu, 17 Oct 2013 10:43:56 -0400 Received: by mail-vc0-f181.google.com with SMTP id id10so1252866vcb.12 for ; Thu, 17 Oct 2013 07:43:54 -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=dzTJUVpM5GVaPZ+d80KakS+lAV6ocSBlUG2QAAraLYc=; b=o1KY7SK7r0o+ueKLpqrrAzj3IYjmLfFZS78HanfVkKo382cNa3l9mIOeaYpvAbRAwz 2oWzaHGFUoV0GXVb3VhaeAF2NY8z3N+C+F1sGXGVwNVSigw+MPVmvjeJdG2xKtqMrQ7V cvjswVJyavULsVOXlRpGRA6l2kSeTB0bh/3WYpeTyN0ruMw+jSzr9X832JqegyBJ5mAX 3zWuptGWtuk3ie5MAYL4wZLxYTUb0AdPdrWCZRyUlAD+0WjuZjWT5oKwgx4PNZwQ+0MB rKw/kU36cIr2Y+9NzfLHOYv35nSyGe/34XBhc8oboAODDZqSwYcH7dZpGsVsZhVeqyiS 3AFA== X-Received: by 10.52.230.35 with SMTP id sv3mr1032227vdc.27.1382021034090; Thu, 17 Oct 2013 07:43:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.248.195 with HTTP; Thu, 17 Oct 2013 07:43:34 -0700 (PDT) In-Reply-To: References: Date: Thu, 17 Oct 2013 10:43:34 -0400 Message-ID: To: Ferenc Kovacs Cc: Levi Morrison , Benjamin Schneider , internals Content-Type: multipart/alternative; boundary=089e0102fe6ecf292e04e8f0d8be Subject: Re: [PHP-DEV] Proposal: Introduction of InvalidStateException From: guilhermeblanco@gmail.com ("guilhermeblanco@gmail.com") --089e0102fe6ecf292e04e8f0d8be Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 ambiguous 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, On Thu, Oct 17, 2013 at 10:38 AM, Ferenc Kovacs wrote: > On Thu, Oct 17, 2013 at 4:33 PM, Levi Morrison >wrote: > > > > > > > I would like to propose the introduction of an 'InvalidStateException= ' > > > into the SPL extension. Within the existing exceptions I am not able > > > to find a type that would represent a state error, throwable if a > > > method has been invoked at an illegal or inappropriate time. > > > > > > > Exceptions are one part of the SPL that are a nasty, poorly thought-out > > mess (no offense to anyone who worked on it; this stuff is harder than > > people realize). I am -1 on simply adding another exception to our mess= , > > but if we can clean it up then I might support it, depending on details= . > > > > if somebody wonders what Levi is referring to: > https://wiki.php.net/rfc/spl-improvements > > -- > Ferenc Kov=C3=A1cs > @Tyr43l - http://tyrael.hu > --=20 Guilherme Blanco MSN: guilhermeblanco@hotmail.com GTalk: guilhermeblanco Toronto - ON/Canada --089e0102fe6ecf292e04e8f0d8be--