mirror of
https://github.com/php/php-src.git
synced 2026-03-28 18:22:42 +01:00
Merge branch 'PHP-7.4'
* PHP-7.4: It's safe to keep old string if it's stored not in SHM.
This commit is contained in:
@@ -568,10 +568,7 @@ static void accel_copy_permanent_strings(zend_new_interned_string_func_t new_int
|
||||
/* empty string */
|
||||
zend_empty_string = new_interned_string(zend_empty_string);
|
||||
for (j = 0; j < 256; j++) {
|
||||
char s[2];
|
||||
s[0] = j;
|
||||
s[1] = 0;
|
||||
zend_one_char_string[j] = new_interned_string(zend_string_init(s, 1, 0));
|
||||
zend_one_char_string[j] = new_interned_string(ZSTR_CHAR(j));
|
||||
}
|
||||
for (j = 0; j < ZEND_STR_LAST_KNOWN; j++) {
|
||||
zend_known_strings[j] = new_interned_string(zend_known_strings[j]);
|
||||
|
||||
Reference in New Issue
Block a user