mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Create interned strings for internal union types
Just like for non-union types. These may be returned to userland via reflection, and as such need to be interned.
This commit is contained in:
parent
9726bc6977
commit
bd2cd2617b
@ -2495,8 +2495,8 @@ ZEND_API zend_result zend_register_functions(zend_class_entry *scope, const zend
|
||||
uint32_t j = 0;
|
||||
while (true) {
|
||||
const char *end = strchr(start, '|');
|
||||
zend_string *str =
|
||||
zend_string_init(start, end ? end - start : strlen(start), 1);
|
||||
zend_string *str = zend_string_init_interned(
|
||||
start, end ? end - start : strlen(start), 1);
|
||||
list->types[j] = (zend_type) ZEND_TYPE_INIT_CLASS(str, 0, 0);
|
||||
if (!end) {
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user