#36897 [Opn]: debug_print_backtrace() doesn't return void but array(0) {}

From: Date: Tue, 28 Mar 2006 19:42:58 +0000
Subject: #36897 [Opn]: debug_print_backtrace() doesn't return void but array(0) {}
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95023@lists.php.net to get a copy of this message
ID: 36897 Updated by: tony2001@php.net Reported By: colder@php.net Status: Open -Bug Type: Documentation problem +Bug Type: Scripting Engine problem Operating System: Irrelevant -PHP Version: Irrelevant +PHP Version: 5.x, 6.x New Comment: This is in fact not documentation problem - returning empty array is pointless and should be fixed. I'll fix the function in a minute. Previous Comments: ------------------------------------------------------------------------ [2006-03-28 20:22:34] colder@php.net Description: ------------ debug_print_backtrace()'s manual page mentions that this function returns void. In fact, it seems to return an empty array (tested under 5.1.2 and 5.1.1-gentoo) I'm not sure what needs to be changed: The function definition in the php source or the documentation. If its the latter one, then here is the patch: http://patches.colder.ch/debug-print-backtrace.patch Thanks in advance. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36897&edit=1

« previous php.bugs (#95023) next »