From f93061471b5541525a39821da70b674b830284df Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Mon, 1 Aug 2016 20:20:01 +0800 Subject: Make the expression more reasonble (by nikic) --- ext/opcache/ZendAccelerator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1