php.net |  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
Votes:3
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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: support at excsitement dot com
New email:
PHP Version: OS:

 

 [2016-02-07 22:09 UTC] support at excsitement dot com
Description:
------------
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 (http://git.php.net/?p=php-src.git;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, http://php.net/manual/en/migration70.incompatible.php) 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 http://php.net/manual/en/function.debug-backtrace.php (Note/Attention block is appropriate?)

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-07-08 20:09 UTC] cmb@php.net
-Status: Open +Status: Verified
 [2018-07-08 20:09 UTC] cmb@php.net
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] <http://svn.php.net/viewvc?view=revision&revision=339817>
 [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: Tue Mar 19 09:01:30 2024 UTC