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

From: Date: Fri, 15 May 2015 16:35:44 +0000
Subject: Re: Bug #69640 Unhandled EngineExceptions thrown from userland do not produce any output
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-86234@lists.php.net to get a copy of this message
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. cheers Dan

« previous php.internals (#86234) next »