Skip to content

Commit 4e110f2

Browse files
committed
Fix cache size
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
1 parent 7ce04d3 commit 4e110f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/ZendAccelerator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4384,7 +4384,7 @@ static void preload_load(size_t orig_map_ptr_static_last)
43844384
if (orig_map_ptr_static_last != zend_map_ptr_static_last) {
43854385
/* preloaded static entries currently are all runtime cache pointers, just assign them as such */
43864386
size_t runtime_cache_size = zend_internal_run_time_cache_reserved_size();
4387-
ZCG(preloaded_internal_run_time_cache_size) = (zend_map_ptr_static_last - orig_map_ptr_static_last) * sizeof(void *);
4387+
ZCG(preloaded_internal_run_time_cache_size) = (zend_map_ptr_static_last - orig_map_ptr_static_last) * runtime_cache_size;
43884388
char *cache = pemalloc(ZCG(preloaded_internal_run_time_cache_size), 1);
43894389
ZCG(preloaded_internal_run_time_cache) = cache;
43904390

0 commit comments

Comments
 (0)