Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8588 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85924 invoked by uid 1010); 18 Mar 2004 23:02:29 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 85880 invoked from network); 18 Mar 2004 23:02:28 -0000 Received: from unknown (HELO iko.gotobg.net) (80.168.8.116) by pb1.pair.com with SMTP; 18 Mar 2004 23:02:28 -0000 Received: from pd9e618c0.dip.t-dialin.net ([217.230.24.192] helo=hristov.com) by iko.gotobg.net with asmtp (Exim 4.24) id 1B46Wz-00074b-AT; Fri, 19 Mar 2004 01:02:29 +0200 Message-ID: <405A2918.80203@hristov.com> Date: Thu, 18 Mar 2004 23:56:24 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20031230 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net, andi@zend.com Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - iko.gotobg.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - hristov.com Subject: Optional parameter for debug_print_backtrace() From: php@hristov.com (Andrey Hristov) 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