Re: Core functions throwing exceptions in PHP7

From: Date: Thu, 16 Jul 2015 00:34:15 +0000
Subject: Re: Core functions throwing exceptions in PHP7
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to internals+get-87192@lists.php.net to get a copy of this message
On Thu, Jul 16, 2015 at 4:58 AM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote: > I understand many of us dislike INI switch nor runtime switch that changes > behavior. However, it's impossible to move to exception at once because we > have no control for users' code including 3rd party modules. Well, ini settiing remains ugly. Code will have to take care of it and this is not going to be a good thing. > IMHO. Rather than adding exception adopted functions gradually, having the > switch > is better for in the long run. We may deprecate/remove the switch 10 years > later or more. > > BTW, I'm thinking to have > "ModulenameException"/"ModulenameFunctionException" > or like rather than simply calling/converting errors to ErrorException when > exception > is enabled for functions. I am not sure I like this idea. I would prefer to define namespace and rely on standard names (when possible) and per extension namespace instead. I also agree to actually deal with exceptions globally at once instead of incremental additions in more or less random places, functions or methods. Cheers, -- Pierre @pierrejoye | http://www.libgd.org

« previous php.internals (#87192) next »