summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@gmail.com>2016-08-01 20:20:01 +0800
committerXinchen Hui <laruence@gmail.com>2016-08-01 20:20:01 +0800
commitf93061471b5541525a39821da70b674b830284df (patch)
tree19eb0249aa3ee284201422d65bba249aa82ba451
parent4d9195927a4c8c8adce84b57125e5b8d52461358 (diff)
downloadphp-git-f93061471b5541525a39821da70b674b830284df.tar.gz
Make the expression more reasonble (by nikic)
-rw-r--r--ext/opcache/ZendAccelerator.c2
1 files changed, 1 insertions, 1 deletions
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;