Bug #64910: Line number of $e = new Exception vs. line number of throw $e
| From: | Sebastian Bergmann | Date: | Thu, 23 May 2013 20:18:05 +0000 |
| Subject: | Bug #64910: Line number of $e = new Exception vs. line number of throw $e | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-67461@lists.php.net to get a copy of this message | ||
Hi!
The error message that is created for an uncaught exception as well
as the stacktrace of an exception list the number of the line on which
the exception object was created. I would expect this to be number of
the line on which the exception is raised using the throw statement.
Derick agrees with me that this is a bug. We propose to update the file
and line properties of the exception object in the
zend_throw_exception_internal() and zend_throw_exception() functions.
Would such a change be accepted? Does it require an RFC?
Thanks!
Sebastian