Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:33375 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 18471 invoked by uid 1010); 22 Nov 2007 03:39:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 18452 invoked from network); 22 Nov 2007 03:39:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Nov 2007 03:39:05 -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 64.233.162.235 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: 64.233.162.235 nz-out-0506.google.com Received: from [64.233.162.235] ([64.233.162.235:12959] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3D/91-02094-AB3F4474 for ; Wed, 21 Nov 2007 22:12:59 -0500 Received: by nz-out-0506.google.com with SMTP id x7so2053435nzc for ; Wed, 21 Nov 2007 19:12:55 -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:mime-version:content-type; bh=3ivWKU4cMFaLpoi5lOcjqvLhQX4aDXt3byBzqNL9u4s=; b=NXXIM1lTAwMs7BpC93cdtC/7bp5weio++l2+449Djq3Fcztbt1zYwYj+l0Q1jA4sTbbzXI/faOKdDiK0+dagJ7brc7hvx9HurqsLVeWa3NK7O9aPTcdHqwyAvewxfDhvEpv0eUvs+/H5b6rS4lO4S+smtxbeIt4B/Z5IpgdNGzI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=ioSmuwJV0dzRR5HcVmojXj0czUHp/baBpJT8KU0Lpl881A3Yq2fFcp3qdK0ZURv/BvQhX2e9qswoOARRZ9kSAJApKOZyG2Cx1hgJ6YWk3BIb/2tIYc80yfCaUuIgBXd/5ujvX4xMWqq2uMyjoHuP3Ll1iYcsqOyfrvzf84LjLWQ= Received: by 10.142.76.4 with SMTP id y4mr2288131wfa.1195701175199; Wed, 21 Nov 2007 19:12:55 -0800 (PST) Received: by 10.142.214.8 with HTTP; Wed, 21 Nov 2007 19:12:55 -0800 (PST) Message-ID: Date: Wed, 21 Nov 2007 22:12:55 -0500 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28618_1146239.1195701175184" Subject: Quick question before submitting a feature request... From: dohpaz@gmail.com ("Ken Stanley") ------=_Part_28618_1146239.1195701175184 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello, I have done my best to look through both the internals archive and the bug database, however I feel that I may have missed something; hence this e-mail. I am working on a project that uses set_exception_handler() so that I can attempt to display a uniform error page, perform logging, etc, of exceptions. Due to prior lack of expertise on my part, I fool-heartedly wrote a view class that would throw an exception if a view was not found. The problem that I run into, that I feel could be improved, is that if the view class throws the exception during exception handling, I get the error, "Fatal error: Exception thrown without a stack frame in Unknown on line 0." Now, I completely understand and agree with why this is happening. 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. Since I am not using the bleeding edge version of PHP (I use 5.2.1), and I am not fluent in reading C, I was hoping someone here could let me know if this has already been fixed in a newer version of PHP, and if not, if it would be worth creating a feature request for this little bit of extra information. Is it even possible? I make the assumption that since the error states that it has no stack, then that would mean there is no information at all. Is that correct? Thank you for your time, and thank you for PHP. P.S. I did find bug #31304, which it seems the submitter was poorly attempting to request this same thing. I admit that I do not use the bug tracker tool very much, so I am unsure if I should re-open this bug and just append my request to it, or create a new one that is worded more clearly. Please advise. -- 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_28618_1146239.1195701175184--