#36897 [Opn->Csd]: debug_print_backtrace() doesn't return void but array(0) {}
| From: | tony2001@php.net | Date: | Tue, 28 Mar 2006 19:43:44 +0000 |
| Subject: | #36897 [Opn->Csd]: debug_print_backtrace() doesn't return void but array(0) {} | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-95024@lists.php.net to get a copy of this message | ||
ID: 36897
Updated by: tony2001@php.net
Reported By: colder@php.net
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: Irrelevant
PHP Version: 5.x, 6.x
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2006-03-28 21:42:57] tony2001@php.net
This is in fact not documentation problem - returning empty array is
pointless and should be fixed.
I'll fix the function in a minute.
------------------------------------------------------------------------
[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