On 23 May 2013 22:22, Stas Malyshev <smalys...@sugarcrm.com> wrote:

> 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?

As a PHP programmer, I would always expect the file/line to refer to
the throw statement that has thrown it last. If I wanted to keep track
of an exception being rethrown, I'd use nested exceptions (Exception's
constructor's third parameter.)

Hope that helps.

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

Reply via email to