|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-04-11 23:33 UTC] nikic@php.net
-Status: Open
+Status: Wont fix
[2016-04-11 23:33 UTC] nikic@php.net
[2016-04-12 07:02 UTC] flip101 at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
Description: ------------ On PHP 7.0.4 the args in debug_backtrace() do not give the correct arguments at the time of the call. Test script: --------------- <?php function foo($var) { array_shift($var); var_dump(debug_backtrace()); } $bar = ['a']; foo($bar); Expected result: ---------------- array(1) { [0]=> array(4) { ["file"]=> string(11) "test.php" ["line"]=> int(8) ["function"]=> string(3) "foo" ["args"]=> array(1) { [0]=> array(0) { [0]=> string(1) "a" } } } } Actual result: -------------- array(1) { [0]=> array(4) { ["file"]=> string(11) "C:\test.php" ["line"]=> int(8) ["function"]=> string(3) "foo" ["args"]=> array(1) { [0]=> &array(0) { } } } }