]> granicus.if.org Git - php/commitdiff
Fixed reseting of interned strings buffer.
authorDmitry Stogov <dmitry@zend.com>
Wed, 24 Oct 2018 12:45:34 +0000 (15:45 +0300)
committerDmitry Stogov <dmitry@zend.com>
Wed, 24 Oct 2018 12:45:34 +0000 (15:45 +0300)
ext/opcache/ZendAccelerator.c

index fe742582c93d029db7a9fc83ca11b38f160ffdac..1ca8f35ce2d2ab332df7e2d72ce11188cc572464 100644 (file)
@@ -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,