Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48756 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88965 invoked from network); 13 Jun 2010 13:05:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2010 13:05:16 -0000 Authentication-Results: pb1.pair.com header.from=kalle.php@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kalle.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kalle.php@gmail.com X-Host-Fingerprint: 209.85.214.42 mail-bw0-f42.google.com Received: from [209.85.214.42] ([209.85.214.42:38598] helo=mail-bw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 63/D2-04758-B87D41C4 for ; Sun, 13 Jun 2010 09:05:15 -0400 Received: by bwz8 with SMTP id 8so1636406bwz.29 for ; Sun, 13 Jun 2010 06:05:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=a0Q/FiifQC85mCwSoQv4npgZnjoF7DvVWeBZ0OmDMqs=; b=PsfEw2RzG2u0UTtp2hkAKke1HuUwlFI6KKmAs9bbavuzNJ2C1v/GUcJjc8jW4H6ZBd uPQWIiiXCkP1TltG1SfFUp0Z9xOwZoMpaE6qOqbVsO77jWIMLQYgp5z5r3InenzEY7x8 tvOGFXfdSxKNGxg1GfVoH4VMYncVQgLF0LmMM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=YufCQ448+7lkUlp2wSnBWbM+cZkYPveAOwqOqjUYpTabknelIQ2861WJ0wmupNRJKZ yIiNQQ2tiGgP4tFdifgQRFyNzHJ49IhDhgdtAXd0KJ1hBrt6PyTMueNueuc5h3oDjwMS fzYlbY5H6XTm6jmj/Vfxe9cPTEqOtgds4PKcs= MIME-Version: 1.0 Received: by 10.204.6.68 with SMTP id 4mr3223208bky.163.1276434312255; Sun, 13 Jun 2010 06:05:12 -0700 (PDT) Sender: kalle.php@gmail.com Received: by 10.204.60.206 with HTTP; Sun, 13 Jun 2010 06:05:12 -0700 (PDT) In-Reply-To: <4C14BE21.2040401@quis.cx> References: <4C14BE21.2040401@quis.cx> Date: Sun, 13 Jun 2010 15:05:12 +0200 X-Google-Sender-Auth: mQgbN2SZNLSC1yxne7KOKyme4v8 Message-ID: To: Jille Timmermans Cc: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] #45351: Exception::getTrace() should return 'object' array-element From: kalle@php.net (Kalle Sommer Nielsen) Hello Jille 2010/6/13 Jille Timmermans : > http://bugs.php.net/45351 > > I have attached a patch to the feature request. IIRC I should just ask > here whether someone is willing to commit it. So, anyone willing to help > me? :) The patch is incorrect (according to what the user requests, and for consistency with debug_backtrace()). What the patch should do is to: 1) Add a new parameter to the arginfo, so reflection can pick this new parameter up, named provide_object 2) Alter the implementation of Exception::getTrace(), ::getTraceAsString() and possibly also ::__toString() so it sends to the proper parameters to the function that builds the trace array/string If you simply change the 0 to 1, then it will be forced every time, and without looking closer to the implementation i can imagine it could cause some unwanted overheat if its not used, or lookup time. -- regards, Kalle Sommer Nielsen kalle@php.net