Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67476 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 64284 invoked from network); 24 May 2013 02:36:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 02:36:10 -0000 Authentication-Results: pb1.pair.com header.from=phpwnd@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=phpwnd@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.45 as permitted sender) X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 209.85.160.45 mail-pb0-f45.google.com Received: from [209.85.160.45] ([209.85.160.45:60549] helo=mail-pb0-f45.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/D9-16824-912DE915 for ; Thu, 23 May 2013 22:36:09 -0400 Received: by mail-pb0-f45.google.com with SMTP id mc17so3669420pbc.4 for ; Thu, 23 May 2013 19:36:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F781FdBbBm35PTdhOqBSFn7/eG3kqcsNSiwYygebbkw=; b=Zkf8K++Zppl+N98ybWGSrR7WUY4gbvQsXQYM/Ol3kuEb9aVEhYWk9t3+1ImTg8jWZr Z+zuub75veT+fM82fmywsqQVYixrXJrt5KYWQO/vxycMs1rJY7DBntHi5ui9+ptTsoWA KDDSPTCQvblr7LUU40ydYoJ3NmVbqL43Omw1/aiHXYMvA+NjSxzMrDNW3nLvrVNW8ZM6 ZUB0USBBYfWhn8YF6IKLF6mNivXtwAAVUH4+ShCOxqViloClSaulqsu5sKx/cvE6cIr0 F5rpX3pf+8VNj3LN8yHE4y65NAXhNgTW58mC/aOyMWqaoezOCm2kpNRvBVLEt5QS9jMz RwKw== MIME-Version: 1.0 X-Received: by 10.69.0.132 with SMTP id ay4mr15626351pbd.62.1369362966496; Thu, 23 May 2013 19:36:06 -0700 (PDT) Received: by 10.68.125.165 with HTTP; Thu, 23 May 2013 19:36:06 -0700 (PDT) In-Reply-To: <519E7A88.5070208@sugarcrm.com> References: <519E797D.7040405@php.net> <519E7A88.5070208@sugarcrm.com> Date: Fri, 24 May 2013 04:36:06 +0200 Message-ID: To: Stas Malyshev Cc: "internals@lists.php.net" , Sebastian Bergmann Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] Bug #64910: Line number of $e = new Exception vs. line number of throw $e From: phpwnd@gmail.com (Josh Davis) On 23 May 2013 22:22, Stas Malyshev 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.