Doc #71547 [Com]: important change in debug_backtrace output is not documented
| From: | royanee at gmail dot com | Date: | Mon, 16 Sep 2019 18:12:18 +0000 |
| Subject: | Doc #71547 [Com]: important change in debug_backtrace output is not documented | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-16950@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=71547&edit=1
ID: 71547
Comment by: royanee at gmail dot com
Reported by: support at excsitement dot com
Summary: important change in debug_backtrace output is not
documented
Status: Verified
Type: Documentation Problem
Package: Documentation problem
PHP Version: 7.0.3
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2018-07-08 20:09:06] 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>
------------------------------------------------------------------------
[2016-02-07 22:09:22] 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.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=71547&edit=1