php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36897 debug_print_backtrace() doesn't return void but array(0) {}
Submitted: 2006-03-28 20:22 UTC Modified: 2006-03-28 21:43 UTC
From: colder@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.x, 6.x OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: colder@php.net
New email:
PHP Version: OS:

 

 [2006-03-28 20:22 UTC] 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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-28 21:42 UTC] 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 21:43 UTC] tony2001@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 08 19:00:03 2025 UTC