[php-src] PR #19799: zend_vm_gen: Track line numbers on a per-file basis
| From: | TimWolla | Date: | Thu, 11 Sep 2025 10:47:05 +0000 |
| Subject: | [php-src] PR #19799: zend_vm_gen: Track line numbers on a per-file basis | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-33190@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/19799
Author: TimWolla
php/php-src#19789 fixed the line number references for
zend_vm_def.h, when generating
with line number information some of them are also specific to zend_vm_execute.h and
thus should reference that file instead with the correct line numbers.
The line number tracking was broken, because it was tracked in a single global variable, instead of
being tracked on a per-file basis. Fix this by making the line numbers an array indexed by the
resource ID and consistently using the out() functions to write into the files.