From: Dmitry Stogov Date: Wed, 24 Oct 2018 12:45:34 +0000 (+0300) Subject: Fixed reseting of interned strings buffer. X-Git-Tag: php-7.3.0RC5~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=335fb94d547f0b2c121e573eff0d102ded586bab;p=php Fixed reseting of interned strings buffer. --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index fe742582c9..1ca8f35ce2 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -380,6 +380,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,