#29896 [NEW]: Backtrace argument list out of sync

From: Date: Mon, 30 Aug 2004 12:14:46 +0000
Subject: #29896 [NEW]: Backtrace argument list out of sync
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65458@lists.php.net to get a copy of this message
From: terry at pothecary dot com Operating system: Windows 2000 PHP version: 5.0.1 PHP Bug Type: Zend Engine 2 problem Bug description: Backtrace argument list out of sync 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 bug report at http://bugs.php.net/?id=29896&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29896&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29896&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29896&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29896&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29896&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29896&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29896&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29896&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29896&r=support Expected behavior: http://bugs.php.net/fix.php?id=29896&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29896&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29896&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29896&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29896&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29896&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29896&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29896&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29896&r=float

« previous php.bugs (#65458) next »