Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67498 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50719 invoked from network); 24 May 2013 15:57:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 15:57:22 -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.42 as permitted sender) X-PHP-List-Original-Sender: phpwnd@gmail.com X-Host-Fingerprint: 209.85.160.42 mail-pb0-f42.google.com Received: from [209.85.160.42] ([209.85.160.42:42152] helo=mail-pb0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 8A/8C-20943-1ED8F915 for ; Fri, 24 May 2013 11:57:22 -0400 Received: by mail-pb0-f42.google.com with SMTP id uo1so4377630pbc.29 for ; Fri, 24 May 2013 08:57:19 -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=Yf47K0EeojW11DlRKncCQsqmwb/1dL9gzvLz+ssW1yg=; b=HxHZY+rSmzbRPIiX1lK01e4jO/Qoa6bI+edQvRm75VsqR0WJ2IrkT2j8/zQww2bd/m D0H2g4amzIx0sTZEeBI5/Bbau1WHlrb/eEnzWC/kXZkmXzYd65XmaWR/2ORYLqVqCObO /kYGiQP8t4GrAIGnJfuvNpp/Xv5D1Rl80xKpWdYZh6zDzUbQepgiHW+7RcxYJvfMQckY mvLzPBHzDf0U7UmxEULFaBmXt1d/b3CmPW4lNLnhU8y+208JBAl3+DjgbtwiqXkhmmh8 ZPDBTaYnIg46H0Zr4gERcGIcup27KXRsHEFgx3dMph/Ud+3cMDhOk02/rxZLSfLcmp6x +6gQ== MIME-Version: 1.0 X-Received: by 10.68.237.106 with SMTP id vb10mr18111863pbc.131.1369411039290; Fri, 24 May 2013 08:57:19 -0700 (PDT) Received: by 10.68.125.165 with HTTP; Fri, 24 May 2013 08:57:19 -0700 (PDT) In-Reply-To: <519F2852.7040601@sugarcrm.com> References: <519E797D.7040405@php.net> <519E7A88.5070208@sugarcrm.com> <519F2852.7040601@sugarcrm.com> Date: Fri, 24 May 2013 17:57:19 +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 24 May 2013 10:44, Stas Malyshev wrote: > > 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. I'm saying that "as a PHP programmer" because my expectation is not based on how other languages work, it's instinctive (perhaps influenced by what used to be the method's description.) If I call getLine() and I don't think about how other languages handle exceptions, and I don't go out of my way to check the manual to see whether it's been changed since 5.1, what comes to mind is "this is going to tell me where the throw occured."