|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2019-11-20 11:49 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Assigned To:
+Assigned To: cmb
[2019-11-20 11:49 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 17:00:01 2025 UTC |
Description: ------------ Hello, I've ran into an issue while testing out 7.4.0~rc6 The 7.3 version "properly" returns the "args" key in the getTrace() items. Is this "non-args" behavior intended? I saw that `debug_backtrace` has a `DEBUG_BACKTRACE_IGNORE_ARGS` option to improve performance. Was this adopted by `getTrace()` as default? Test script: --------------- $x = new Exception(); var_dump($x->getTrace()[0]['args'] ?? []); var_dump(debug_backtrace()[0]['args']); Expected result: ---------------- The "args" key should be present in the trace items: /code/test/Common/Service/Logger/Formatter/ExceptionFormatterTest.php:23: array(2) { [0] => string(5) "param" [1] => array(1) { 'paramKey' => int(1) } } /code/test/Common/Service/Logger/Formatter/ExceptionFormatterTest.php:24: array(2) { [0] => string(5) "param" [1] => array(1) { 'paramKey' => int(1) } } Actual result: -------------- /code/test/Common/Service/Logger/Formatter/ExceptionFormatterTest.php:23: array(0) { } /code/test/Common/Service/Logger/Formatter/ExceptionFormatterTest.php:24: array(2) { [0] => string(5) "param" [1] => array(1) { 'paramKey' => int(1) } }