Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67485 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8938 invoked from network); 24 May 2013 08:44:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 08:44:07 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@sugarcrm.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@sugarcrm.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain sugarcrm.com designates 108.166.43.91 as permitted sender) X-PHP-List-Original-Sender: smalyshev@sugarcrm.com X-Host-Fingerprint: 108.166.43.91 smtp91.ord1c.emailsrvr.com Linux 2.6 Received: from [108.166.43.91] ([108.166.43.91:55851] helo=smtp91.ord1c.emailsrvr.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C1/74-20943-5582F915 for ; Fri, 24 May 2013 04:44:06 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp4.relay.ord1c.emailsrvr.com (SMTP Server) with ESMTP id 495471400DF; Fri, 24 May 2013 04:44:03 -0400 (EDT) X-Virus-Scanned: OK Received: by smtp4.relay.ord1c.emailsrvr.com (Authenticated sender: smalyshev-AT-sugarcrm.com) with ESMTPSA id CA951140084; Fri, 24 May 2013 04:44:02 -0400 (EDT) Message-ID: <519F2852.7040601@sugarcrm.com> Date: Fri, 24 May 2013 01:44:02 -0700 Organization: SugarCRM User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6 MIME-Version: 1.0 To: Josh Davis CC: "internals@lists.php.net" , Sebastian Bergmann References: <519E797D.7040405@php.net> <519E7A88.5070208@sugarcrm.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Bug #64910: Line number of $e = new Exception vs. line number of throw $e From: smalyshev@sugarcrm.com (Stas Malyshev) Hi! > 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 It is rather surprising that you would expect that as a PHP programmer, since it never worked this way in PHP, and no PHP code works this way either. Also, throwing new exception with previous is not the same as throwing the same exception twice. -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227