Skip to content

Commit

Permalink
Merge branch 'PHP-7.3' into PHP-7.4
Browse files Browse the repository at this point in the history
* PHP-7.3:
  It's safe to keep old string if it's stored not in SHM.
  • Loading branch information
dstogov committed Apr 17, 2019
2 parents 93c6a32 + bfadd9f commit 663056a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ext/opcache/ZendAccelerator.c
Expand Up @@ -577,10 +577,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]);
Expand Down

0 comments on commit 663056a

Please sign in to comment.