We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d21222 commit 7e07622Copy full SHA for 7e07622
Zend/zend_vm_gen.php
@@ -553,23 +553,17 @@
553
function out($f, $s) {
554
global $line_nos;
555
556
- $line_no = &$line_nos[(int)$f];
557
- if ($line_no === null) {
558
- $line_no = 1;
559
- }
560
-
561
fputs($f,$s);
562
- $line_no += substr_count($s, "\n");
+
+ $line_nos[(int)$f] ??= 1;
+ $line_nos[(int)$f] += substr_count($s, "\n");
563
}
564
565
// Resets #line directives in resulting executor
566
function out_line($f) {
567
global $line_nos, $executor_file;
568
569
570
571
572
+ $line_no = $line_nos[(int)$f] ??= 1;
573
574
fputs($f,"#line ".($line_no+1)." \"".$executor_file."\"\n");
575
++$line_no;
0 commit comments