Re: Bug #69640 Unhandled EngineExceptions thrown from userland do not produce any output

From: Date: Fri, 15 May 2015 17:12:07 +0000
Subject: Re: Bug #69640 Unhandled EngineExceptions thrown from userland do not produce any output
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-86235@lists.php.net to get a copy of this message
Hey: >> On May 16, 2015, at 12:35 AM, Dan Ackroyd <danack@basereality.com> wrote: >> >> On 15 May 2015 at 14:38, Xinchen Hui <laruence@gmail.com> wrote: >> Hey: >> >> as described in >> https://bugs.php.net/bug.php?id=69640&thanks=1 >> >> instead of fixing it by exam the error type, I'd prefer to >> disallow initializing a engine exception from user land.. > > > How would that work when people want to write unit/integration tests > to test the behaviour of a module when an EngineException is thrown? > > If you can't create a certain type of exception, it would mean that > some code is basically untestable...which seems bad. You can not creat it directly, but you can trigger the engine to throw one Thanks > > cheers > Dan

« previous php.internals (#86235) next »