Skip to content

refactor: clean zend_get_brk_cont_target arguments and sync var types #19117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xepozz
Copy link
Contributor

@xepozz xepozz commented Jul 13, 2025

No description provided.

int array_offset = opline->op1.num;
static uint32_t zend_get_brk_cont_target(const zend_op *opline) {
uint32_t nest_levels = opline->op2.num;
uint32_t array_offset = opline->op1.num;
Copy link
Member

Choose a reason for hiding this comment

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

Technically should be fine, but we use int and even zend_long in other places (e.g. zend_compile_break_continue(), CG(context).current_brk_cont, etc.). If this needs to be adjusted, all of them should be.

@iluuu1994
Copy link
Member

Side-note:

The head ref may contain hidden characters: "\u0441"

Your branch-name seems to be messed up.

@iluuu1994
Copy link
Member

@xepozz Can you revert the type change so we can merge the dropping of the zend_op_array *op_array parameter. If you want to, you can adjust the type in a separate PR afterwards.

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