Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8590 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34149 invoked by uid 1010); 19 Mar 2004 01:30:13 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 34051 invoked from network); 19 Mar 2004 01:30:11 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 19 Mar 2004 01:30:11 -0000 Received: (qmail 511 invoked from network); 19 Mar 2004 01:30:03 -0000 Received: from guardian.zend.office (HELO AndiNotebook.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 19 Mar 2004 01:30:03 -0000 Message-ID: <5.1.0.14.2.20040319032858.0232ec30@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Fri, 19 Mar 2004 03:30:02 +0200 To: Andrey Hristov ,internals@lists.php.net In-Reply-To: <405A2918.80203@hristov.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: Optional parameter for debug_print_backtrace() From: andi@zend.com (Andi Gutmans) References: <405A2918.80203@hristov.com> What else does debug_print_backtrace() include? If the info is more maybe we should change debug_backtrace()? In any case, in general I don't have a problem to do this. Might be nicer if we could do it without output buffering though but I haven't looked at the code to see how hard that would be. Andi At 11:56 PM 3/18/2004 +0100, Andrey Hristov wrote: > Hi internals, >what do you think about adding an optional parameter to >debug_print_backtrace() (PHP 5 only) so instead of printing the stacktrace >to get it as string. The information provided by debug_print_backtrace() >is more than the information provided by debug_backtrace(). >So if the parameter is added the function will behave just like print_r() >which has second optional parameter. >I have made a patch which is available here : >http://hristov.com/andrey/projects/php_stuff/patches/debug_print_backtrace_as_string.diff.txt > > >Andrey