mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Handle interned strings as non-refcounted scalars
This commit is contained in:
parent
dc889b69ef
commit
3733737328
17 changed files with 272 additions and 271 deletions
|
@ -5135,7 +5135,7 @@ PHP_FUNCTION(register_shutdown_function)
|
|||
}
|
||||
|
||||
for (i = 0; i < shutdown_function_entry.arg_count; i++) {
|
||||
Z_ADDREF(shutdown_function_entry.arguments[i]);
|
||||
if (Z_REFCOUNTED(shutdown_function_entry.arguments[i])) Z_ADDREF(shutdown_function_entry.arguments[i]);
|
||||
}
|
||||
zend_hash_next_index_insert_mem(BG(user_shutdown_function_names), &shutdown_function_entry, sizeof(php_shutdown_function_entry));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue