We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a29ae17 commit 8468049Copy full SHA for 8468049
Zend/zend.c
@@ -594,10 +594,7 @@ static void function_copy_ctor(zval *zv) /* {{{ */
594
for (i = 0 ; i < num_args; i++) {
595
if (ZEND_TYPE_IS_CLASS(arg_info[i].type)) {
596
zend_string *name = zend_string_dup(ZEND_TYPE_NAME(arg_info[i].type), 1);
597
-
598
- new_arg_info[i].type =
599
- ZEND_TYPE_ENCODE_CLASS(
600
- name, ZEND_TYPE_ALLOW_NULL(arg_info[i].type));
+ ZEND_TYPE_SET_PTR(new_arginfo[i].type, name);
601
}
602
603
func->common.arg_info = new_arg_info + 1;
0 commit comments