Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93405 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16608 invoked from network); 19 May 2016 22:14:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 May 2016 22:14:58 -0000 Authentication-Results: pb1.pair.com header.from=rowan.collins@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=rowan.collins@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.46 as permitted sender) X-PHP-List-Original-Sender: rowan.collins@gmail.com X-Host-Fingerprint: 74.125.82.46 mail-wm0-f46.google.com Received: from [74.125.82.46] ([74.125.82.46:36368] helo=mail-wm0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0F/D4-05406-1EA3E375 for ; Thu, 19 May 2016 18:14:57 -0400 Received: by mail-wm0-f46.google.com with SMTP id n129so249208634wmn.1 for ; Thu, 19 May 2016 15:14:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=qbFLQ2By7I3PgdlLluame4fdFsDkx3D1+MY7d36nLMI=; b=PcebwYGRHRs+KI+iDiif1UB5QwQO7j+i8JoLXIvWzA6b7pGsNkv5BCDHC0IHLfuJKY 8khTQZWeAPspsqcme9S37CPNfCqXCv89Fiin1Jy/C7ErxK0s7qqX0mJw/qsvanLcabT1 Q3Q5gmmjhxTq41xAHCzf9kgPbnX2Mrxy19AUssSlVdbC5oXo0rYCHgt0d5110uyB4ctc 3gh6xbZTLaXeDFoIu1H02L1ya9RZf5jvqi9NedzvKnMcKpc+iNEPIKYKBwizdXKuWX9p GUt43YZeYzl7IDxx5lv4rsXq9iuQI7IAvbN+2G2qpYYnFU+7iWUyIPvCLI+gQsiwWWI4 TnOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=qbFLQ2By7I3PgdlLluame4fdFsDkx3D1+MY7d36nLMI=; b=DyvvJuhNJVrWnPR1+xY1yzaUQlIFB0iCuQQLuQSenqHprGznhLGJDmjLzmi3uPKstx ITfXCqzBV3+oWYIxYtqEEsMDQhZT6QuGk33GsZyI/umD1+E3YZpwOqQaE96y9W6xK6pv 7SupNfMEQ7D95H+hfmq8dyDQFUc4AOLUIbpl416WP6lWL9YXXkNNLd47U0PSeSYMnkl/ UNNJJZtME8elzouZy8m+2OAnSAgwmaG2cVuzRXtFa876WL+krIGyktNZDc7bWUiAQD3W zcpAA68pNnk/pvV3AboBC+PVmlgMLBxOMtpE9ArUkeM5yWQtIT9gm7AVSaaQdO78Cgr7 2Yww== X-Gm-Message-State: AOPr4FWXEIYIa/etbNBpE5kSlFtC221qALuEj7rE9B7LxlpyHTjWalyTGE/PQhxqLwYHtg== X-Received: by 10.194.117.3 with SMTP id ka3mr15659010wjb.38.1463696093878; Thu, 19 May 2016 15:14:53 -0700 (PDT) Received: from [192.168.1.189] ([2.27.88.132]) by smtp.googlemail.com with ESMTPSA id gk6sm16531379wjc.31.2016.05.19.15.14.52 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2016 15:14:53 -0700 (PDT) References: <72f547d6-5fcf-3cd2-960d-cb612a429e47@php.net> <914fa1d6-9fae-51b2-9246-526eb5c01bc7@gmail.com> To: "internals@lists.php.net" Message-ID: <03898665-8098-6c7c-0158-c181f66b9946@gmail.com> Date: Thu, 19 May 2016 23:14:44 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Exception::getLine() From: rowan.collins@gmail.com (Rowan Collins) On 19/05/2016 21:30, Ryan Pallas wrote: > > Of what value to a subsequent catch statement is the trace of that > throw statement? And why does that "start a new exception flow", > but if PDO threw different sub-classes, you could let one flow > through unmodified by tightening the catch statement? > > > True, but if you instead of throwing the same exception, threw a new > one, you could capture both stacks. The same could be said of the current behaviour: > throw new PDOException($e->getMessage(), $e->getCode(), $e); Since this contains both "throw" and "new", it's guaranteed a new stack trace in either convention. So the question remains which is the *more likely* desired behaviour if you *don't* re-wrap it, and I honestly don't know the answer. -- Rowan Collins [IMSoP]