Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67473 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51806 invoked from network); 24 May 2013 00:39:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 May 2013 00:39:21 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.223.172 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.223.172 mail-ie0-f172.google.com Received: from [209.85.223.172] ([209.85.223.172:56957] helo=mail-ie0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FF/47-16824-7B6BE915 for ; Thu, 23 May 2013 20:39:20 -0400 Received: by mail-ie0-f172.google.com with SMTP id 16so10510691iea.17 for ; Thu, 23 May 2013 17:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=vqzrlOH1EUerWwFh8wzY7z9FZ+myn/3jRRMXgWHBcjU=; b=grc8dWjIGc1Ql+ZBVCHV9pL/LuMbmJrF+7lV6YCIgplAqepgeeJG9nZJ62BxKevG59 5PyAiTZ+SlnmoqoMEzTUtpLhQ73ksM8aKgYYzHM3y1/Cr+LjGKX5mWU2PXWmv2ezzfi4 VYyiVvwTY8PHIx/mjD62jo8Z8PZpolK7xf1TU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :x-gm-message-state; bh=vqzrlOH1EUerWwFh8wzY7z9FZ+myn/3jRRMXgWHBcjU=; b=CLyeWZ8RpLY7XNE6Ga3RYNkSaYB1tAh52YtsqYBz1hsuBzs2zWFYvXuNms6bPl9+9G RGPAgmOUcIH5xhJoJZm4/EJOLS+vrJWHI4Zunouw9P0zgFsIQp0gLzb3VSUQ9z7JKSHY doXvv70tIU7e+flGsiauDLCSLRtVprDN6s5Q0XhnS0rS+qkzQBWZp+ENshZ/nhtGGvde IdiG8SYXF7GJD94ceQpI4hfJXnEmG9UK2wPVOFDlOt46dbPSghLfcJB9jK1COuaQrcq+ RfItBcy+Yql+qD0fXuw3ceof0jUPbv3idJVoXFEkn1vX0Q6e14J7wovwaPnWSgiUPQrI FqCw== X-Received: by 10.43.133.134 with SMTP id hy6mr11791705icc.57.1369355957040; Thu, 23 May 2013 17:39:17 -0700 (PDT) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.43.105.138 with HTTP; Thu, 23 May 2013 17:38:56 -0700 (PDT) In-Reply-To: <519EB0F2.60304@sugarcrm.com> References: <519E797D.7040405@php.net> <519E7A88.5070208@sugarcrm.com> <1369352270.10020.YahooMailNeo@web133006.mail.ir2.yahoo.com> <519EB0F2.60304@sugarcrm.com> Date: Thu, 23 May 2013 17:38:56 -0700 X-Google-Sender-Auth: fvdIAhak34q8CO6YBf7kU7vuujs Message-ID: To: Stas Malyshev Cc: hakre , "internals@lists.php.net" , Sebastian Bergmann Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQlmv1CgpqYdIMIMde99RR0Ak674FzQOvHYFhdezA36h1DxwXIExIIG36nvfa3uH8qRoZ0xP Subject: Re: [PHP-DEV] Bug #64910: Line number of $e = new Exception vs. line number of throw $e From: aharvey@php.net (Adam Harvey) On 23 May 2013 17:14, Stas Malyshev wrote: > Hi! > >>> the code does "throw new", it is always useful. So how you would >>> propose >>> to solve this? >> >> rethrow $e; > > Yes, this is definitely an option, but requires a new keyword. We could use a C++ style throw; as an implicit rethrow. Adam