Skip to content

Commit 190cd5e

Browse files
committed
zend_vm_gen: Fix out_line() implementation
1 parent 7e07622 commit 190cd5e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Zend/zend_vm_gen.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ function out($f, $s) {
563563
function out_line($f) {
564564
global $line_nos, $executor_file;
565565

566-
$line_no = $line_nos[(int)$f] ??= 1;
566+
$line_nos[(int)$f] ??= 1;
567+
$line_nos[(int)$f]++;
567568

568-
fputs($f,"#line ".($line_no+1)." \"".$executor_file."\"\n");
569-
++$line_no;
569+
fputs($f,"#line ".$line_nos[(int)$f]." \"".$executor_file."\"\n");
570570
}
571571

572572
function is_hot_helper($name) {

0 commit comments

Comments
 (0)