Skip to content

Conversation

TimWolla
Copy link
Member

#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.

php#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.
Copy link
Member

@arnaud-lb arnaud-lb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@TimWolla TimWolla requested a review from arnaud-lb September 11, 2025 11:36
@TimWolla TimWolla merged commit 57450e5 into php:master Sep 11, 2025
9 checks passed
@TimWolla TimWolla deleted the zend-vm-gen-line-tracking branch September 11, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants