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:2
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: support at excsitement dot com Assigned:
Status: Verified Package: Documentation problem
PHP Version: 7.0.3 OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [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>
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Wed Aug 21 22:01:26 2019 UTC