|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-31 10:47 UTC] jani@php.net
[2007-11-21 14:55 UTC] vrana@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Sat Feb 14 09:00:01 2026 UTC |
Description: ------------ The line numbering appear incorrect. Reproduce code: --------------- <?php function test() { static $calls = 0; if ($calls++ < 1) return; $bt = debug_backtrace(); printf("(%d)\n", $bt[0]['line']); } register_tick_function('test'); declare (ticks=1) { $i = 0; $j = 1; $i = 0; $j = 1; $i = 0; $j = 1; // foo } ?> Expected result: ---------------- (16) (17) (18) (18) (19) (19) Actual result: -------------- (16) (17) (17) (18) (18) (20)