Skip to content

Conversation

@iluuu1994
Copy link
Member

Fixes GH-20978

}
}
if (ZEND_VM_EXT_ARRAY_INIT & flags) {
fprintf(stderr, " %u", opline->extended_value >> ZEND_ARRAY_SIZE_SHIFT);
Copy link
Member

Choose a reason for hiding this comment

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

Potentially even this should be suppressed, since no initialization is happening? No strong opinion either way, not my primary area of the code.

@ndossche
Copy link
Member

This is good, but one more nit:
In my opinion, it should be the other way around. Now it checks if ZEND_ARRAY_NOT_PACKED is set and then claims the array is packed, but this is not true, it's the other way around. ZEND_ARRAY_NOT_PACKED means that the array will be initialised as mixed, there is no explicit initialisation for packed hashtables.

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.

OPcode dump of ZEND_INIT_ARRAY should not show (packed) if OP1 is unused

3 participants