From: Xinchen Hui Date: Mon, 1 Aug 2016 12:20:01 +0000 (+0800) Subject: Make the expression more reasonble (by nikic) X-Git-Tag: php-7.1.0beta2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f93061471b5541525a39821da70b674b830284df;p=php Make the expression more reasonble (by nikic) --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index b04214ba2a..769ce92049 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -2445,7 +2445,7 @@ static int zend_accel_init_shm(void) ZCSG(interned_strings_start) = ZCSG(interned_strings_end) = NULL; # ifndef ZTS - zend_hash_init(&ZCSG(interned_strings), (ZCG(accel_directives).interned_strings_buffer * 1024 * 1024) / (sizeof(Bucket) + sizeof(Bucket*) + 8 /* average string length */), NULL, NULL, 1); + zend_hash_init(&ZCSG(interned_strings), (ZCG(accel_directives).interned_strings_buffer * 1024 * 1024) / _ZSTR_STRUCT_SIZE(8 /* average string length */), NULL, NULL, 1); if (ZCG(accel_directives).interned_strings_buffer) { void *data;