Skip to content

Commit 59dcd50

Browse files
committed
Do not memcpy when not needed
1 parent 92a8eeb commit 59dcd50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_API.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2864,7 +2864,7 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
28642864
*/
28652865
zend_type legacy_iterable = ZEND_TYPE_INIT_CLASS_CONST_MASK(ZSTR_KNOWN(ZEND_STR_TRAVERSABLE),
28662866
(new_arg_info[i].type.type_mask|_ZEND_TYPE_UNION_BIT|MAY_BE_ARRAY));
2867-
memcpy(&new_arg_info[i].type, &legacy_iterable, sizeof(zend_type));
2867+
new_arg_info[i].type = legacy_iterable;
28682868
}
28692869
}
28702870
}

0 commit comments

Comments
 (0)