|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #71547 important change in debug_backtrace output is not documented
Submitted: 2016-02-07 22:09 UTC Modified: 2018-07-08 20:09 UTC
Avg. Score:3.7 ± 0.9
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:1 (33.3%)
From: support at excsitement dot com Assigned:
Status: Verified Package: Documentation problem
PHP Version: 7.0.3 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
18 - 17 = ?
Subscribe to this entry?

 [2016-02-07 22:09 UTC] support at excsitement dot com
debug_backtrace in php 7 returns argument values not as they were passed to the function, but as they were at the moment of the debug_backtrace call (;a=blob;f=UPGRADING;h=aa5f82c49abf4e36476b328c2fc8820d4672c72a;hb=refs/heads/PHP-7.0#l190)

Official php list of "Backward incompatible changes" (Migrating from PHP 5.6.x to PHP 7.0.x, doesn't mention it, only informing of similar change to behavior of func_get_arg(s)

Neither it is documented on the manual page for debug_backtrace function (Note/Attention block is appropriate?)

Without knowledge of that change, information returned by the function is misleading.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-08 20:09 UTC]
-Status: Open +Status: Verified
 [2018-07-08 20:09 UTC]
The migration guide has been fixed in the meantime[1], but this
change is not documented on the debug_backtrace man page, and
func_get_arg(s) are missing respective changelog entries.

[1] <>
 [2019-09-16 18:12 UTC] royanee at gmail dot com
This also affects debug_print_backtrace(). func_get_args() and func_get_arg() both have a "Note" referencing the change to current values near the bottom of the main content, but it would be good to have it in the version history for all four.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 23 17:01:33 2024 UTC