#29896 [Ver->Csd]: Backtrace argument list out of sync

From: Date: Wed, 22 Jun 2005 15:31:53 +0000
Subject: #29896 [Ver->Csd]: Backtrace argument list out of sync
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-80830@lists.php.net to get a copy of this message
ID: 29896 Updated by: dmitry@php.net Reported By: terry at pothecary dot com -Status: Verified +Status: Closed Bug Type: Zend Engine 2 problem Operating System: * PHP Version: 5CVS-2005-06-19 New Comment: Fixed in CVS HEAD and PHP_5_0. Previous Comments: ------------------------------------------------------------------------ [2004-08-30 14:14:39] terry at pothecary dot com 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) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29896&edit=1

« previous php.bugs (#80830) next »