|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-06-22 17:31 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 18:00:01 2025 UTC |
Description: ------------ If you call and enumerate the information from a debug_backtrace() in a user error handler then the argument list is out of step with the other information. Reproduce code: --------------- function userErrorHandler($num, $msg, $file, $line, $vars) { debug_print_backtrace(); } $OldErrorHandler = set_error_handler("userErrorHandler"); function GenerateError1($A1) { $a = $b; } function GenerateError2($A1) { GenerateError1("Test1"); } GenerateError2("Test2"); Expected result: ---------------- I expect the final line in the backtrace to show a call of: GenerateError2(Test2) Actual result: -------------- The final line in the backtrace shows a call of: GenerateError2(Test1)