> On one hand, I think it makes sense - nobody really cares where the
> exception was created... But there's one problem here:
> 
> try {
>     //stuff
> } catch(Exception $e) {
>     $logger->log("Oops, exception!");
>     throw $e;
> }
> 
> If we update file/line here, we lose original exception information and
> file/line in the exception becomes useless. Right now, since 99.99% of
> the code does "throw new", it is always useful. So how you would 
> propose
> to solve this?

rethrow $e;

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to