Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33402 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80487 invoked by uid 1010); 23 Nov 2007 20:36:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 80471 invoked from network); 23 Nov 2007 20:36:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Nov 2007 20:36:29 -0000 Authentication-Results: pb1.pair.com smtp.mail=dohpaz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dohpaz@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.162.177 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dohpaz@gmail.com X-Host-Fingerprint: 209.85.162.177 el-out-1112.google.com Linux 2.4/2.6 Received: from [209.85.162.177] ([209.85.162.177:40649] helo=el-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 26/59-02479-BC937474 for ; Fri, 23 Nov 2007 15:36:28 -0500 Received: by el-out-1112.google.com with SMTP id p32so1328375elf for ; Fri, 23 Nov 2007 12:36:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=KfLJJWecqUMzMvc1mqkh40297CwTP+hQ4rw90J/FSQ4=; b=fLncnUf/kWrMkPHJWQy3MCNcbS/VtYDpEyYmUBgx7iLku87aWF6IJi2TuCcppTE78PJr7GSbxMLJ7ooSf6Adz2Wo1DfB2czilZnAkeJJTrDT1JBxJX//QAyi0qkjYMaAehD3irkvw4bT3GLJ+bCvrQDUS5F8BAcimOX/fm9DJ0o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=jeuU+V0viAchtdaCmvs5e/vVZC7v7VSwEG2pfW7l+YEsDSbn+ZJfuqgNsxFxXkgjrOar2JFb6ZTDa0o7lUaopOmvDuNFniLUA5TBpWcSoimjta0KvXZQGn0tKbDhALBZWRXJz+cdM8cUHG1vT4KoS66CVQO+/TSrLMIauEplGYU= Received: by 10.142.88.20 with SMTP id l20mr1271869wfb.1195850184669; Fri, 23 Nov 2007 12:36:24 -0800 (PST) Received: by 10.142.214.8 with HTTP; Fri, 23 Nov 2007 12:36:24 -0800 (PST) Message-ID: Date: Fri, 23 Nov 2007 15:36:24 -0500 To: "Antony Dovgal" Cc: internals@lists.php.net In-Reply-To: <47471754.1040406@daylessday.org> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3838_26563342.1195850184663" References: <47471754.1040406@daylessday.org> Subject: Re: [PHP-DEV] Quick question before submitting a feature request... From: dohpaz@gmail.com ("Ken Stanley") ------=_Part_3838_26563342.1195850184663 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Anthony, thank you for your response. Would it not be possible that when an exception is thrown to temporarily store the filename/line number for when the exception handler kicks in, so at the very least, if someone made the mistake of throwing an exception inside of another exception, they could at least be told where to go to fix their mistake? I am only asking to this list because I would hate to submit a ticket that is just going to be closed. :) On Nov 23, 2007 1:09 PM, Antony Dovgal wrote: > On 22.11.2007 06:12, Ken Stanley wrote: > > I have > > corrected my mistake so that it will use trigger_error() instead of > throwing > > an exception. However, in my Google searches I have noticed that there > are a > > lot of people having somewhat similar problems, but without an easy > > solution. My feature request would be to include the filename and > possibly > > even the line number where this last exception was thrown from. > > The execution phase is finished at the moment when exception handlers and > shutdown functions are called. > No script is executing -> no line & filename info anymore -> filename = > Unknown, line = 0. > > -- > Wbr, > Antony Dovgal > -- It looked like something resembling white marble, which was probably what it was: something resembling white marble. -- Douglas Adams, "The Hitchhikers Guide to the Galaxy" ------=_Part_3838_26563342.1195850184663--