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.


On Thu, Oct 17, 2013 at 10:38 AM, Ferenc Kovacs wrote:

On Thu, Oct 17, 2013 at 4:33 PM, Levi Morrison <morrison.levi@gmail.com
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:

Ferenc Kovács
@Tyr43l - http://tyrael.hu

Guilherme Blanco
MSN: guilhermeblanco@hotmail.com
GTalk: guilhermeblanco
Toronto - ON/Canada

Search Discussions

Discussion Posts


Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 6 of 14 | next ›
Discussion Overview
groupphp-internals @
postedOct 17, '13 at 1:30p
activeOct 17, '13 at 6:10p



site design / logo © 2022 Grokbase