|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-07-10 14:10 UTC] nikic@php.net
-Status: Open
+Status: Duplicate
[2020-07-10 14:10 UTC] nikic@php.net
[2020-07-10 16:09 UTC] michael dot vorisek at email dot cz
[2020-07-10 19:00 UTC] michael dot vorisek at email dot cz
[2020-07-10 19:09 UTC] nikic@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 19:00:02 2025 UTC |
Description: ------------ debug_backtrace() currently returns args by reference, ie. the returned args variables, not the passed values. Very hard to debug, backtrace should always return the passed data. Test script: --------------- function x(string $filename) { $filename = realpath($filename); $trace = debug_backtrace(); var_dump($trace[0]['args']); } x('non_existing_file.txt'); Expected result: ---------------- array(1) { [0]=> bool(false) } Actual result: -------------- array(1) { [0]=> string(21) "non_existing_file.txt" }