1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00

Merge branch 'master' into preload

* master:
  Fixed reseting of interned strings buffer.
This commit is contained in:
Dmitry Stogov
2018-10-24 15:59:24 +03:00

View File

@@ -384,6 +384,9 @@ static void accel_interned_strings_restore_state(void)
memset(ZCSG(interned_strings).saved_top,
0, (char*)ZCSG(interned_strings).top - (char*)ZCSG(interned_strings).saved_top);
/* Reset "top" */
ZCSG(interned_strings).top = ZCSG(interned_strings).saved_top;
/* rehash */
memset((char*)&ZCSG(interned_strings) + sizeof(zend_string_table),
STRTAB_INVALID_POS,