mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Set UNION bit for internal class union return type
Fixes assertion failure reported in: https://github.com/php/php-src/pull/7115#issuecomment-882580767
This commit is contained in:
parent
a4db74364d
commit
084d49a262
2 changed files with 26 additions and 18 deletions
|
@ -2806,6 +2806,7 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
|
|||
zend_type_list *list = malloc(ZEND_TYPE_LIST_SIZE(num_types));
|
||||
list->num_types = num_types;
|
||||
ZEND_TYPE_SET_LIST(new_arg_info[i].type, list);
|
||||
ZEND_TYPE_FULL_MASK(new_arg_info[i].type) |= _ZEND_TYPE_UNION_BIT;
|
||||
|
||||
const char *start = class_name;
|
||||
uint32_t j = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue