From: Dmitry Stogov Date: Tue, 31 Oct 2017 12:35:44 +0000 (+0300) Subject: Always calculate calculate string hash value on attempt of interning X-Git-Tag: php-7.3.0alpha1~1130 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=998794f5849903cec7a5ebbe4c6a1814e84834d5;p=php Always calculate calculate string hash value on attempt of interning --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index d2ad109254..260ecc9d2d 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -491,6 +491,7 @@ zend_string *accel_new_interned_string(zend_string *str) static zend_string *accel_new_interned_string_for_php(zend_string *str) { + zend_string_hash_val(str); if (ZCG(counted)) { zend_string *ret = accel_find_interned_string(str);