Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67461 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4204 invoked from network); 23 May 2013 20:18:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 May 2013 20:18:16 -0000 Authentication-Results: pb1.pair.com header.from=sebastian@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=sebastian@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 188.94.27.5 as permitted sender) X-PHP-List-Original-Sender: sebastian@php.net X-Host-Fingerprint: 188.94.27.5 scarlet.netpirates.net Received: from [188.94.27.5] ([188.94.27.5:45778] helo=scarlet.netpirates.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/BB-26812-2897E915 for ; Thu, 23 May 2013 16:18:16 -0400 Received: (qmail 28336 invoked by uid 89); 23 May 2013 20:18:12 -0000 Received: by simscan 1.4.0 ppid: 28327, pid: 28331, t: 0.1106s scanners: attach: 1.4.0 clamav: 0.97.6/m:54/d:17264 Received: from unknown (HELO ?10.3.0.3?) (team@thephp.cc@10.3.0.3) by scarlet.netpirates.net with ESMTPA; 23 May 2013 20:18:11 -0000 Message-ID: <519E797D.7040405@php.net> Date: Thu, 23 May 2013 22:18:05 +0200 Reply-To: internals@lists.php.net User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: internals@lists.php.net X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Bug #64910: Line number of $e = new Exception vs. line number of throw $e From: sebastian@php.net (Sebastian Bergmann) 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